MySensors HVAC not mapping

I have been struggling to use the home assistent HVAC integration with MySensors.

On RPI I have installed HomAssistant and Mosquitto. I have successfully installed and connected MySensor and HomeAssistant through MQTT by this configuration:

    - device: mqtt
      persistence_file: /home/homeassistant/.homeassistant/mysensors.json
      topic_in_prefix: 'mysensors-out'
      topic_out_prefix: 'mysensors-in'
  optimistic: true
  persistence: true
  retain: true
  version: '2.0'

But when a MQTT message arrives to Home assistant it complains about a bad value:

2017-10-15 09:00:30 DEBUG (Thread-3) [mysensors.gateway_mqtt] Receiving 1;0;1;0;44;0
2017-10-15 09:00:30 DEBUG (Thread-8) [homeassistant.components.mysensors] Node update: node 1 child 0
2017-10-15 09:00:30 DEBUG (Thread-8) [homeassistant.components.mysensors] Invalid values: {44: ‘0’}: climate platform: node 1 child 0: S_HVAC requires value_type V_HVAC_FLOW_STATE @ data[21]
2017-10-15 09:00:30 DEBUG (Thread-8) [mysensors] Handle queue with call ((‘1;0;1;0;44;0’,), {}) took 0.146 seconds

Why does it complain about the payload value?
Please, help.

Problem solved!

I had to change example sketch and added

bool initialValueSent = false;
void loop() {
  // put your main code here, to run repeatedly:
  if (!initialValueSent) {

    initialValueSent = true;

It might make sense to add this code to the example code at

1 Like