How to send ALL devices status to controller
Posted: 02 Mar 2019, 09:41
Hi,
I would like to Publish (refresh) all devices status to controller with an event or command.
As far as I know the simplest way is to create an event in a rule and publish any single device value (i.e)
Since I have 30 ESP with several Devices, I am looking for a single command which can be the same for all ESP regardless of name or number of devices.
Is it possible? Any idea?
Regards
Lorenzo
I would like to Publish (refresh) all devices status to controller with an event or command.
As far as I know the simplest way is to create an event in a rule and publish any single device value (i.e)
Code: Select all
on sendDeviceUpdate do
Publish /%sysname%/Device1/Name,[Device1#Name]
Publish /%sysname%/Device2/Name,[Device2#Name]
Publish /%sysname%/Device3/Name,[Device3#Name]
...and so on
endon
Is it possible? Any idea?
Regards
Lorenzo