ha-shellies-discovery: H&T not showing in HA, 1PM OK
Describe the bug I’ve got 4 Shelly 1PMs and 2 H&Ts. I’m using HA 2022.12 and the latest version of the script. However in MQTT devices I can only see the 1PMs and not the H&Ts.
Pressing the button on the H&T seems to announce correctly so the messages do seem to be getting from the H&T to the broker OK. I also get them if I manually subscribe to that topic in HA, but would be good to have the devices show up so I can display them in Lovelace, etc.
Expected behavior Two H&T units to show up as MQTT device in the same way as the four 1PM devices
Versions:
- Home Assistant: 2022.12.8
- Shellies Discovery: 2.3.0
- Shelly device firmware: 20221027-092707/v1.12.1-ga9117d3
Shellies Discovery automation:
# automations.yaml file
- id: shellies_announce
alias: 'Shellies Announce'
trigger:
- platform: homeassistant
event: start
- platform: time_pattern
hours: "/1" # Modifying this if you are using Shelly Motion can drain your device's battery quickly.
action:
service: mqtt.publish
data:
topic: shellies/command
payload: announce
- id: 'shellies_discovery'
alias: 'Shellies Discovery'
mode: queued
max: 999
trigger:
platform: mqtt
topic: shellies/announce
action:
service: python_script.shellies_discovery
data:
id: '{{ trigger.payload_json.id }}'
mac: '{{ trigger.payload_json.mac }}'
fw_ver: '{{ trigger.payload_json.fw_ver }}'
model: '{{ trigger.payload_json.model }}'
mode: '{{ trigger.payload_json.mode | default }}'
host: '{{ trigger.payload_json.ip }}'
Debug log: Attached home-assistant_2023-01-02T18-32-46.117Z.log
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 17 (8 by maintainers)
Spot on, thanks so much for your help!
Wake up the device once again and the entities become available.