Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions PyViCare/PyViCareRoomSensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

class RoomSensor(Device):

@handleNotSupported
def getSerial(self):
return self.service.getProperty("device.sensors.temperature")["deviceId"]
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Accessing device.sensors.temperature does work for temp sensors and TRVs (see test data). This is a workaround as long as Viessmann does not provide device.serial on zigged devices (see https://community.viessmann.de/t5/Feedback-API/Serial-Number-an-Gateways/td-p/410253)


@handleNotSupported
def getTemperature(self):
return self.service.getProperty("device.sensors.temperature")["properties"]["value"]["value"]
Expand Down