For those that want a simple way to use a Shelly 1 out of the box (with no flashing), this is one approach:
- platform: command_line
scan_interval: 2
switches:
counter_leds:
command_on: '/usr/bin/curl -Ss "http://192.168.X.X/relay/0?turn=on" >>/tmp/foo 2>&1'
command_off: '/usr/bin/curl -Ss "http://192.168.X.X/relay/0?turn=off" >>/tmp/foo 2>&1'
command_state: '/usr/bin/curl -Ss "http://192.168.X.X/relay/0" 2>>/tmp/foo | grep ison.:true'
Change 192.168.X.X to match your devices IP address.