Own sensor. Where to start?
Posted: Thursday 30 May 2019 10:17
Hello,
I have made my own Arduino sensor that can communicate over the network. It is a simple alarm that can be either "High" or "Low" and I can craft my own HTTP requests.
My first question is, what is the best approach to connect it to Domoticz?
- Create a device in Domoticz an talk to the API directly? Or set a user variable?
- Let the device talk to an other script on the Domoticz server that will talk to Domoticz?
- Use MySensor or MQTT? (no experience with that)
When creating a sensor, what type?
- An Alert sensor
- A Selector Switch
- Custom Sensor
The custom sensor gives a gradient in the graph, where in reality the alarm is either "on" or "off", more like a light switch. The alert sensor comes closest to what the device does and multiple alarms could raise the "warning level".
Is adding your own device type to Domoticz an option?
Could someone point me in the right direction?
I have made my own Arduino sensor that can communicate over the network. It is a simple alarm that can be either "High" or "Low" and I can craft my own HTTP requests.
My first question is, what is the best approach to connect it to Domoticz?
- Create a device in Domoticz an talk to the API directly? Or set a user variable?
- Let the device talk to an other script on the Domoticz server that will talk to Domoticz?
- Use MySensor or MQTT? (no experience with that)
When creating a sensor, what type?
- An Alert sensor
- A Selector Switch
- Custom Sensor
The custom sensor gives a gradient in the graph, where in reality the alarm is either "on" or "off", more like a light switch. The alert sensor comes closest to what the device does and multiple alarms could raise the "warning level".
Is adding your own device type to Domoticz an option?
Could someone point me in the right direction?