I have a command line cover defined as shown below:
cover:
platform: command_line
covers:
velux_blind:
command_close: "curl --retry 3 http://192.168.1.186/blind/down/"
command_open: "curl --retry 3 http://192.168.1.186/blind/up/"
command_state: curl --retry 3 http://192.168.1.186/blind/ststus/"
friendly_name: Velux Blind
command_timeout: 120
value_template: ‘{{ 0 }}’
When calling this blind from Google Home, two things happen:
- The action completes successfully
- Having completed successfully, google announces “sorry, that mode is not available for velux blind”
Checking the HA logs, I see the failure seems to be when calling command_state, with this in the logs:
ValueError: invalid literal for int() with base 10: '‘0’'
The command in question returns the character 0 or 1 when called
Any idea how I can get around this…?