I’m also at a loss for how to integrate my Shelly Pro 1 relays. I can control the relay but I can’t see if it online or offline or the sate of the relay.
switch:
- name: "Shelly Pro1"
unique_id: "shellypro1-30c6f7849e14"
command_topic: "shellypro1-30c6f7849e14/rpc"
payload_on: '{"id": 1, "src":"homeassistant", "method": "Switch.Set", "params": {"id": 0, "on": true}}'
payload_off: '{"id": 1, "src":"homeassistant", "method": "Switch.Set", "params": {"id": 0, "on": false}}'
state_topic: shellypro1-30c6f7849e14/events/rpc
value_template: "{{ value_json.output }}"
state_on: true
state_off: false
availability:
- topic: shellypro1-30c6f7849e14/online
payload_available: 'true'
payload_not_available: 'false'