cflurin / homebridge-mqtt

Homebridge-mqtt is a Plugin for Homebridge.
Apache License 2.0
229 stars 39 forks source link

Thermostat: i can't set the current temperature :-( #28

Closed dr-apple closed 7 years ago

dr-apple commented 7 years ago

I have add a Thermostat and i can set the target Temp and the current Heatingstae, but it dosen't work to set the currentTemperature, it came not a erro message but the currentTemperature value is allways n.v. or 0.0°C 👎

Can you please help my ?

cflurin commented 7 years ago

It should work. Please post some more infos:

dr-apple commented 7 years ago

homebridge-mqtt version: 3

homekit app: eve

payload: {"name":"heizung", "characteristic":"CurrentTemperature","value":19.0}

cflurin commented 7 years ago

I suppose you mean version 0.3.0 v0.3.0 and higher supports multiple services therefore you need to define a service_name:

note: you might install the latest version 0.3.7 from GitHub:

sudo npm install -g cflurin/homebridge-mqtt

1) remove your accessory

topic: homebridge/to/remove
payload: {"name": "heizung"}

2) add a new accessory:

topic: homebridge/to/add
payload: {"name": "heizung", "service_name": "temperature_control", "service": "Thermostat"}

3) set value:

topic: homebridge/to/set
payload: {"name": "heizung", "service_name": "temperature_control", "characteristic": "CurrentTemperature", "value": 19.0}
dr-apple commented 7 years ago

Thanks it works, but the problem was the eve app, with the app "device" works fine :-)