hatl / hasscontrol

Simple garmin widget to control home assistant scenes
Other
119 stars 17 forks source link

Cover now gives error code 400 #58

Closed milkmanrox closed 4 months ago

milkmanrox commented 5 months ago

I've had a garage cover entity working for ages, but now it gives "Failed unknown error code 400".

Cover entity looks like this:

cover:
  - platform: template
    covers:
      garage_door:
        device_class: garage
        friendly_name: "Garage Door"
        value_template: >-
          {% if is_state('binary_sensor.shelly_plus_1_garage_door_switch_0_input','off') %}
            Open
          {% else %}
            Closed
          {% endif %}
        open_cover:
          service: switch.turn_on
          data:
            entity_id: switch.shelly_plus_1_garage_door_switch_0
        close_cover:
          service: switch.turn_on
          data:
            entity_id: switch.shelly_plus_1_garage_door_switch_0
        stop_cover:
          service: switch.turn_on
          data:
            entity_id: switch.shelly_plus_1_garage_door_switch_0
        icon_template: >-
          {% if is_state('binary_sensor.shelly_plus_1_garage_door_switch_0_input','off') %}
            mdi:garage-open
          {% else %}
            mdi:garage
          {% endif %}

I've got a group with both the cover entity and the actual switch entity that the cover refers to, and the latter works but not the former.

alexander-th commented 5 months ago

I can confirm the same behavior with a similar cover configuration running HA 2024.5.1

hatl commented 4 months ago

fixed in v1.3.1