Here are links to my sketch that measures temperature, humidity, pressure, and battery voltage using a Moteino M0 with RFM69HW radio and BME280 breakout attached. Much lower power than an ESP8266 version I built earlier.
and my HA configuration:
Coming from the Home Assistant side I don’t understand why MySensors has so many sensor types that all do the same thing. Namely, reporting a floating point value.
In the above example, I use S_CUSTOM as the sensor type with the V_VAR1 variable type for all four of the sensor values sent to the controller (HA). It is easy to customize icon, friendly name and units as shown in the customize.yaml example.
Furthermore, I don’t understand how associating more than one variable type applies to a Home Assistant controller. Here is the communication sequence: One child ID sends one variable which becomes one state value. So I see no value in checking other possible MySensor variable types when one is received.
In my example I get DEBUG warnings for V_VAR2, V_VAR3, V_VAR3, V_VAR4, V_VAR5, and V_CUSTOM.
I suppose I could use S_HUM since it only has one variable type, V_HUM. That seems silly.
I don’t see any reason to check variable types that have not been received. I found it easy to debug just by looking at the HA states and the mysensors1.json file in the /config directory. The DEBUG messages just confused me.