jjv
January 13, 2023, 8:40pm
1
So I’m trying to add some Shelly H&T via MQTT and it’s sort of working. Below is my section from configuration.yaml. I have one sensor and the only thing that shows as an entity is ShellyHT-temperature and then it’s showing up like a battery with the numbers being in %. Not sure what is wrong. I’m not an expert on HA. Just started with having to edit config files. Any help or pointer would be greatly appreciated. Thanks
mqtt:
sensor:
name: "ShellyHT-temperature"
unique_id: "shellyht-78F843"
unit_of_measurement: '°F'
expire_after: 86400
device_class: temperature
icon: mdi:home-thermometer-outline
qos: 1
state_topic: "shellies/shellyht-78F843/sensor/temperature"
json_attributes_topic: "shellies/shellyht-78F843/announce"
sensor:
name: "ShellyHT-humidity"
unique_id: "shellyht-78F843"
unit_of_measurement: '%'
expire_after: 86400
device_class: humidity
icon: mdi:water-percent
qos: 1
state_topic: "shellies/shellyht-78F843/sensor/humidity"
sensor:
name: "ShellyHT-battery"
unique_id: "shellyht-78F843"
unit_of_measurement: '%'
expire_after: 86400
device_class: battery
icon: mdi:battery
qos: 1
state_topic: "shellies/shellyht-78F843/sensor/battery"
Your YAML seems incorrect, here’s mine for reference:
mqtt:
sensor:
- name: Theater Room Temp
state_topic: "shellies/shellyht-E01531/sensor/temperature"
device_class: temperature
unit_of_measurement: "°F"
- name: Theater Room Humidity
state_topic: "shellies/shellyht-E01531/sensor/humidity"
device_class: humidity
unit_of_measurement: "%"
- name: Theater Room H&T Battery
state_topic: "shellies/shellyht-E01531/sensor/battery"
device_class: battery
jjv
January 15, 2023, 12:15pm
4
On yours how often do you see temperature/humidity updates? I see hours go by without anything being reported. Thanks in advance.
RonnieLast
(Last of the Ronnies)
January 15, 2023, 3:09pm
5
Ah - I just found this on mine:
You can’t go below a 0.5 degrees C delta, but the RH can be set to a delta of 1% RH. So set that and see if you get better behaviour in HA.
Oddly enough I’ve just updated to beta firmware 0.13.0-beta1 - it offered it to me for some reason and now it’s offering me 0.12.0 again.
So some oddness going on there too. I don’t see many changes anyway in 0.13.0.
jjv
January 17, 2023, 5:45pm
6
Thanks for the screenshots. I’ll take a look at that.
jjv
January 26, 2023, 9:49pm
7
What do you see for battery percentage? Mine are constantly saying 100% which is great if really uses that little but wanted to verify what other people are seeing. Also sometimes the batteries randomly say unavailable. Is anyone seeing the same? Thanks
robfish
(Robert Fisher)
June 19, 2023, 3:09am
8
My yaml entry did not work until I changed it to:-
mqtt:
sensor:
- unique_id: ensuite_temp
name: Ensuite Temperature
state_topic: "shellies/shellyht-6A5761/sensor/temperature"
device_class: temperature
unit_of_measurement: "°C"
- unique_id: ensuite_humid
name: Ensuite Humidity
state_topic: "shellies/shellyht-6A5761/sensor/humidity"
device_class: humidity
unit_of_measurement: "%"
- unique_id: ensuite_batt
name: Ensuite H&T Battery
state_topic: "shellies/shellyht-6A5761/sensor/battery"
device_class: battery
Maxrunner
(João Rossa)
January 24, 2024, 6:51pm
9
Hi all! im new to home assistant and im tring to configure a shelly h&t. But the only thing im able to do is find it as a device:
Hi, all, you humans ! I’m trying to extract the temperature value from Shelly h&t gen 3 via MQTT.
this is screen shot from MQTT explorer
I have try all yaml from above the post, but still no luck to display the value in the entity
my YAML:
mqtt:
sensor:
# Temperature
- name: "Shelly HT HOL Temperature"
unique_id: shellyhtg3hol-84fce63e73a0
state_topic: "shelyplusht/status/temperature:0"
value_template: "{{ value_json.tC }}"
device_class: temperature
Ok. there is a typo in
state_topic: “shelyplusht/status/temperature:0”- shelly
(deepseec find the typo)