Gas Sensor Problem
-
Gas Sensor Problem
I use MQ2 sensor
I Copy/Paste code without eny changes
and i have problem my gateway read like dust sensot
0;0;3;0;9;read: 25-25-0 s=0,c=1,t=37,pt=2,l=2,sg=0:0
MyMQTT/25/0/V_DUST_LEVELhelp me to sove this problem
-
Use V_LEVEL
MyMessage msgSmoke(CHILD_ID_SMOKE, V_LEVEL);
-
i use
MyMessage msg(CHILD_ID_MQ, V_LEVEL);and is same as
MyMessage msgSmoke(CHILD_ID_SMOKE, V_LEVEL);
-
I was using a different approach for smoke sensor read, if you are interested please take a look here: http://forum.mysensors.org/topic/2747/home-automation-multi-sensor-nodes
There are examples includes of single sensor node and multi-sensor node that include also MQ2 sensor and example how to read the associated MQTT message into HomeAssistant.