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 toloxone_ip
: Miniserver's IP addressloxone_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
esphome
application - Find your device and click
Edit
- Click
Install
and wait until it completes
- Find and Left Click on
Virtual Inputs
under 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 loxone_udp_port
(defaults to 9999
and no changes are required)
- Find and Left Click on
Virtual Outputs
under 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
,1
CHL 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 Online
as such:
- Create new Memory Flag:
BoneIO Online
- Add formula block with:
IF(I2 - I1 > 30;0;1)
- Connect
KeepAliveTime
to I1 of Formula block - Connect
UnixTimestamp
to I2 of Formula block - Connect
R
from 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
,1
CHL1 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: