I have Digi X4 Ethernet gateway(wifi) with smartplug and sensor. How can I write a RCI request for "depends on the number of the sensor's brightness, turn on/off the smartplug". I can manually turn on the smartplug using "<channel_set name="rpm0.power_on" value="on" />", but I need it to be automatically.
Or, if there is a way to get it happen by java? Not using the Digi cloud and ESP?
Thank you for your answer.