From 72372fb254e9be5d2cb66a462a8d957d120fb8ba Mon Sep 17 00:00:00 2001 From: Teemu Rytilahti Date: Thu, 8 Feb 2024 15:33:39 +0100 Subject: [PATCH] Add rssi for smartdevices --- kasa/smart/smartdevice.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/kasa/smart/smartdevice.py b/kasa/smart/smartdevice.py index 841c2351..433b9949 100644 --- a/kasa/smart/smartdevice.py +++ b/kasa/smart/smartdevice.py @@ -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