Add rssi for smartdevices

This commit is contained in:
Teemu Rytilahti 2024-02-08 15:33:39 +01:00
parent f0f1e478c4
commit 72372fb254

View File

@ -141,6 +141,14 @@ class SmartDevice(Device):
icon="mdi:signal",
)
)
self.add_descriptor(
Descriptor(
self,
"RSSI",
attribute_getter=lambda x: x._info["rssi"],
icon="mdi:signal",
)
)
self.add_descriptor(
Descriptor(
device=self, name="Time", attribute_getter="time", show_in_hass=False