gpbenton / engMQTTClient

MQTT client for Energenie ener314-rt board running on a raspberry Pi
MIT License
21 stars 10 forks source link

eTRV HomeAssistant is a switch and doesnt work. #23

Closed ghost closed 4 years ago

ghost commented 4 years ago

The eTRV HomeAssistant (HA) configuration contains the following switch directives:-

  switch:
    - platform: mqtt
      name: "Lounge TRV Low Power Mode"
      command_topic: "/energenie/eTRV/Command/PowerMode/8008"
      state_topic: "/energenie/eTRV/Command/PowerMode/8008"
      payload_on: 1
      payload_off: 0
      retain: true

The effect of this is to make the entire device config, a switch based entity. This means that one has to slide the Low Power switch to On in order for HA core to commence sending and receiving mqtt topics/states. However, setting LowPower mode on this equipment significantly degrades operation to the point where the valve can take a considerable amount of time to respond/reply. In other words, they fail to operate within acceptable norms.

One fix for you might be to use the input_select with On and Off as options?

Also note, removing the switch will render all the scripts unoperable because your configuration has hidden the control switch:

group:
    lounge_trv:
      name: Lounge
      #HERE-> control: hidden
      entities:
      ..

Commenting out hidden [as above] fixes the problem and allows the scripts to run. However, this is not ideal because to run scripts the control slider n the UI needs to be moved to on, and this then makes HA run all the scripts at once which itself causes an error " Githubissues.

  • Githubissues is a development platform for aggregating issues.