Hi,
whilst progressing with my Domoticz Home Automation Solution, a new Tool Shed ("Gartenhaus") is in the make. This shed will have several sensors (like TinkerForge Bricks/Bricklets, but also planned an Arduino) connected to a Raspberry Pi running in the shed.
Task
How to transfer sensor data from the shed to the home automation server?
Solution
Data from the TinkerForge Bricks/Bricklets is gathered via MQTT subscribtion, to be published to the Domoticz Server.
A B4J non-ui application (tfdmqttdispatcher) is running on the shed Raspberry Pi to dispatch MQTT messages from TinkerForge to Domoticz.
Two MQTT Clients are defined in the dispatcher, one for TinkerForge to gather data from the bricklets and the other one for publishing the TinkerForge bricklet data to Domoticz.
Communication Summary
Gartenhaus TinkerForge Bricklet > Subscribe TinkerForge MQTT Topics > Convert & Dispatch > Publish Topics to Domoticz Home Automation Server MQTT Gateway > Domoticz Display Sensor.
Status
In testing mode - but running fine. Next is to add more sensors and implement in the shed (build outdoor cases, wiring, power supply via solar panels)
The B4J Application source attached.
Will keep posted on progress.
BTW: Currently 52 Devices (Sensors, Switches) defined on the Domoticz Home Automation Server (a Raspberry Pi B+ which is running since almost 1.5 years without any issues; Several B4J non ui applications run as processes to perform several tasks)
whilst progressing with my Domoticz Home Automation Solution, a new Tool Shed ("Gartenhaus") is in the make. This shed will have several sensors (like TinkerForge Bricks/Bricklets, but also planned an Arduino) connected to a Raspberry Pi running in the shed.
Task
How to transfer sensor data from the shed to the home automation server?
Solution
Data from the TinkerForge Bricks/Bricklets is gathered via MQTT subscribtion, to be published to the Domoticz Server.
A B4J non-ui application (tfdmqttdispatcher) is running on the shed Raspberry Pi to dispatch MQTT messages from TinkerForge to Domoticz.
Two MQTT Clients are defined in the dispatcher, one for TinkerForge to gather data from the bricklets and the other one for publishing the TinkerForge bricklet data to Domoticz.
Communication Summary
Gartenhaus TinkerForge Bricklet > Subscribe TinkerForge MQTT Topics > Convert & Dispatch > Publish Topics to Domoticz Home Automation Server MQTT Gateway > Domoticz Display Sensor.
Status
In testing mode - but running fine. Next is to add more sensors and implement in the shed (build outdoor cases, wiring, power supply via solar panels)
The B4J Application source attached.
Will keep posted on progress.
BTW: Currently 52 Devices (Sensors, Switches) defined on the Domoticz Home Automation Server (a Raspberry Pi B+ which is running since almost 1.5 years without any issues; Several B4J non ui applications run as processes to perform several tasks)
Attachments
Last edited: