Choose style:

Author Topic: Generic IP Devices for the Controllers  (Read 4255 times)

0 Members and 1 Guest are viewing this topic.

Offline Seven

  • Newbie
  • *
  • Posts: 6
  • Thanks: 0
  • Registered : 10/10/2014
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Generic IP Devices for the Controllers
« on: October 08, 2015, 01:50:57 pm »
Technically savvy users would be empowered by creating a pair of simple 'virtual devices' for basic IP exchanges.

'IP Control'

When it is 'added' to the system, the user would specify:

1) A web socket (IP address & port)
2) An IP protocol (UDP or TCP)
3) 'On' Message string
4) 'Off' Message string
5) 'Refresh Interval' integer

The device would show up in the GUIs as an on/off switch.  When toggled 'on', the 'On' IP message gets sent to the web socket using the specified protocol.  When toggled 'off', the 'Off' IP message gets sent. 

If the 'Report Interval' is set to a non-zero value, the device re-transmits its state once per interval.



'IP Indication'

When adding the device to the system, the user would specify:

1)  A Web Socket
2)  An IP protocol
3)  An 'On' Message String
4)  An 'Off' Message String
5)  A 'Query' Message String
6)  Echo boolean

The device would be shown in the GUI as a binary sensor.  When the web socket receives data in the specified protocol (udp or tcp), it is compared to the messages.

If it matches the 'On' message, the device is shown as 'On'. 
If it matches the 'Off' message, the device is shown as 'Off'. 
If it matches the 'Query' message, the device's state is sent back to the source. 

In any matching case, if 'Echo' is set to 'true' the message will be repeated back to the source.



 

Page created in 0.048 seconds with 20 queries.