How to integrate BoneIO with Loxone via UDP & HTTP
For getting info from BoneIO into Loxone we use UDP connection.
For sending commands from Loxone into BoneIO we use HTTP connection.
Note: We could use UDP however it would require additional configuration changes in the yaml, where HTTP commands are working out of the box.
static_ip_address: static ip address in your network that the boneIO will be attached tominiserver_ip: Miniserver's IP addressminiserver_udp_port: UDP port that BoneIO will send data to (if using multiple devices, you might want to change this)
There are multiple ways to do it: via usb cable, network using esphome application
- Go to
esphomeapplication - Find your device and click
Edit
- Click
Installand wait until it completes
Navigate to static_ip_address of the device in a browser: for ex. http://192.168.31.214/

- Find and Left Click on
Virtual Inputsunder your Miniserver
- Import Template by clicking: UDP Device Template -> Import Template... -> Find the file downloaded earlier
VIU_BoneIO Dimmer 8ch 8di.xml
- Use newly created template by clicking: UDP Device Template -> Import Template... -> Choose under
My Templates:VIU_BoneIO Dimmer 8ch 8di.xml
Change UDP receive port to the one from .yaml config under miniserver_udp_port (defaults to 9999 and no changes are required)
- Find and Left Click on
Virtual Outputsunder your Miniserver
- Import Template by clicking: Device Templates -> Import Template... -> Find the file downloaded earlier
VO_BoneIO Dimmer 8ch 8di.xml
- Use newly created template by clicking:
Device Templates->Import Template...-> Choose:VO_BoneIO Dimmer 8ch 8di.xml
Change Address to the one from .yaml config under static_ip_address field
DI1-8: Digital inputs. Possible values:0,1CHL Power/CHR Power: Power in watts for Left (CHL) and Right (CHR) channelsKeepAliveTime: UnixTimestamp of last ping from BoneIO to Miniserver. In order to make a use of it we can useFormula: and Memory Flag:BoneIO Onlineas such:
- Create new Memory Flag:
BoneIO Online - Add formula block with:
IF(I2 - I1 > 30;0;1) - Connect
KeepAliveTimeto I1 of Formula block - Connect
UnixTimestampto I2 of Formula block - Connect
Rfrom Formula block into newly created Memory Flag:BoneIO Online
CHL1-CHL4/CHR1-CHR4: Relays for Left (CHL1-4) and Right Channels (CHR1-4). Possible values to send:0,1CHL1 Dimmer-CHL4 Dimmer/CHR1 Dimmer-CHR4 Dimmer: Dimmers for Left (CHL1-4) and Right Channels (CHR1-4). Possible values to send:0-255
Above virtual output commands can be used in Lighting Controller as such:















