stefan-kaestle / openhab2-addons

Add-ons for openHAB 2.x
Eclipse Public License 2.0
16 stars 1 forks source link

Add handler for "Wall thermostat" (temperature + humidity) #25

Closed tuxianerDE closed 3 years ago

tuxianerDE commented 4 years ago

The Bosch Thermostat for floor heating system does also measure the relative air moisture and shares this with the controller.

As a second iteration obtaining this value together with the temperature would be good to use for analytics and graphing.

coeing commented 4 years ago

@tuxianerDE This should be the "Wall Thermostat" device: https://apidocs.bosch-smarthome.com/local/ (Select "Wall Thermostat" from the top right drop down). It shouldn't be too hard to create a handler for it, all we would need is a service for the Humidity as the Temperature service is already in place.

I will flag this for v2 as I would like to get out a first public version first before doing further enhancements :)

tuxianerDE commented 4 years ago

all cool. Hence I suggested it as an enhancement :)

jensflorian commented 3 years ago

FYI long polling of such device already contains all necessary data:

2020-12-27 14:51:09.993 [DEBUG] [.internal.devices.bridge.LongPolling] - Sending long poll request
2020-12-27 14:51:13.128 [DEBUG] [.internal.devices.bridge.LongPolling] - Long poll response: {"result":[{"path":"/devices/hdm:HomeMaticIP:3014F711A000289A185B21CB/services/HumidityLevel","@type":"DeviceServiceData","id":"HumidityLevel","state":{"@type":"humidityLevelState","humidity":40},"deviceId":"hdm:HomeMaticIP:3014F711A000289A185B21CB"}],"jsonrpc":"2.0"}

2020-12-27 14:51:13.129 [DEBUG] [devices.bridge.BoschSHCBridgeHandler] - Got update for hdm:HomeMaticIP:3014F711A000289A185B21CB
2020-12-27 14:51:13.129 [DEBUG] [devices.bridge.BoschSHCBridgeHandler] - Registered device: id=roomClimateControl_hz_1 - looking for hdm:HomeMaticIP:3014F711A000289A185B21CB
2020-12-27 14:51:13.129 [DEBUG] [.internal.devices.bridge.LongPolling] - Sending long poll request
2020-12-27 14:51:13.185 [DEBUG] [.internal.devices.bridge.LongPolling] - Long poll response: {"result":[{"iconId":"icon_room_office","extProperties":{"humidity":"40.0"},"@type":"room","name":"Büro","id":"hz_1"}],"jsonrpc":"2.0"}
GerdZanker commented 3 years ago

Public version is out now. Milestone 2 is the next target. Because I have several "Wall thermostats" this enhancement is very welcome from my side.

coeing commented 3 years ago

Public version is out now. Milestone 2 is the next target. Because I have several "Wall thermostats" this enhancement is very welcome from my side.

Yes, we should definitively prefer devices that we have access to, so we can make this high prio :)

tuxianerDE commented 3 years ago

Same here I have two Wall thermostats installed so happy to support testing here!

coeing commented 3 years ago

@GerdZanker Implemented the humidity level service and the wall thermostat handler (#96). It was straight forward, but I have no such device at home, so I depend on you to test my implementation :)