nitaybz / homebridge-tado-ac-old

Homebridge plugin to support Tado Smart AC Control devices.
7 stars 2 forks source link

I can turn on/off Tado, but when I turn it on, HB loose authorization #12

Closed alexsalex closed 7 years ago

alexsalex commented 7 years ago

Right now I tried to turn on, and it's work. But after my AC start working, Homebridge is unavailable and ALL (Yamaha-AVC, People, Tado) accessories too. But the video camera still working. To fix this issue I have to remove Homebridge from HomeKit, delete files in persist dir, and add it again. Sometimes Homebridge is available, but accessories not. Reboot Homebridge do not help. This happens just only when I turn on Tado.
2017-06-28 19-18-13 3825

alexsalex commented 7 years ago

I install the old version, with weird numbers, and it works perfect! 2017-06-30 00-13-35 3827

jetmcquack commented 7 years ago

I think this problem is more related to automation. I had the same issue when I've got some automation set up with homebridge accessories. Now i have removed them and it's been stable for more than 2 weeks

alexsalex commented 7 years ago

Yep, may be. But why old ver, with weird numbers, works perfect with automation?

nitaybz commented 7 years ago

I think you are referring to different issues...

@alexsalex which version did you install that allowed you to control your ac?

alexsalex commented 7 years ago

@nitaybz I install it from npm. npm i homebridge-tado-ac And it shows me the same version what I installed before from git repo.

nitaybz commented 7 years ago

@alexsalex so the version from npm works goos but with funny numbers? thats the issue?

nitaybz commented 7 years ago

please try the latest: sudo npm install -g https://github.com/nitaybz/homebridge-tado-ac

alexsalex commented 7 years ago

@nitaybz no) first was funny numbers issue, you help me in another topic here. You fixed funny numbers, but after fixing starts this issue. I tried to install old ver of tado-ac, and it works. So maybe when you fix funny numbers, you broke something else? And thank you so much for your quick response!

nitaybz commented 7 years ago

please try to install my latest version, and send me logs if it's not working, we will figure this out, for some reason homekit suddenly can only can handle celsius, and it's doing the conversion to Fahrenheit it self. I can imagine what the issue is but we might need a few runs here until we completely solve it.

alexsalex commented 7 years ago

@nitaybz nope... the same problem. I just start AC, and I loose registration from HomeKit. All my HB accessories is "Not Response" 2017-06-30 10-28-31 1fbd

nitaybz commented 7 years ago

show me the logs for when you turned on

alexsalex commented 7 years ago
Jun 30 10:23:05 MS homebridge[5818]: [2017-6-30 10:23:05] Homebridge is running on port 51826.
Jun 30 10:27:17 MS homebridge[5818]: [2017-6-30 10:27:17] [Tado] The current temperature display unit is ºF
Jun 30 10:27:18 MS homebridge[5818]: [2017-6-30 10:27:18] [Tado] Current zone mode is undefined
Jun 30 10:27:18 MS homebridge[5818]: [2017-6-30 10:27:18] [Tado] Current power state is OFF
Jun 30 10:27:18 MS homebridge[5818]: [2017-6-30 10:27:18] [Tado] Current operating state is OFF
Jun 30 10:27:18 MS homebridge[5818]: [2017-6-30 10:27:18] [Tado] Target operating state is OFF
Jun 30 10:27:18 MS homebridge[5818]: [2017-6-30 10:27:18] [Tado] Target temperature is unavailable
Jun 30 10:27:18 MS homebridge[5818]: [2017-6-30 10:27:18] [Tado] Room temperature is 76.1ºF
Jun 30 10:27:25 MS homebridge[5818]: [2017-6-30 10:27:25] [Tado] Force cooling
Jun 30 10:27:25 MS homebridge[5818]: [2017-6-30 10:27:25] [Tado] Set target temperature to 64º

or debug mode? in debug mode, nothing happens too.

nitaybz commented 7 years ago

what did you do? set the mode to cool?, anything special after that? I want to see if homebridge crush

alexsalex commented 7 years ago

@nitaybz that's the problem... HP NOT crushing... It works fine without any problem, but HomeKit stops working with HB... In any app. 2017-06-30 10-33-08 7029 2017-06-30 10-37-52 9694

When I restart HB, it starts normally without any error. But HomeKit stops working with it. I clean persist/ and remove HB from HomeKit, it starts working until I just turn on AV via Homekit. If I use Tado app, I can see the status of my AC in HomeKit.

nitaybz commented 7 years ago

please try again to install

nitaybz commented 7 years ago

I changed it again so if you installed try again

alexsalex commented 7 years ago

Now temp is in Celcius (curent temp, target temp in F). Didn't turn on AC and:

2017-06-30 10-33-08 7029

nitaybz commented 7 years ago

didn't get ehat you mean:

Now temp is in Celcius (curent temp, target temp in F)

are they in F or C? where do you see it in celsius?

alexsalex commented 7 years ago

Top temp on pic is in C, buttom temp is in F

2017-06-30 00-13-35 3827

nitaybz commented 7 years ago

171 it's in celsius? how do you know? it's pretty high for celsius :)

are you sure you installed from the link I gave you? from github and not NPM

alexsalex commented 7 years ago

@nitaybz pic is from preview post... it is for example. I'm sure what i install from git)

nope, the same issue. turn on AC and all HB is "no response"

nitaybz commented 7 years ago

please install this version: sudo npm install -g https://github.com/nitaybz/homebridge-tado-ac#logs

it contains more logs... so send me the logs after you run it

alexsalex commented 7 years ago
Jun 30 11:10:58 MS homebridge[11214]: [2017-6-30 11:10:58] Homebridge is running on port 51826.
Jun 30 11:11:45 MS homebridge[11214]: [2017-6-30 11:11:45] [Tado] The current temperature display unit is ºF
Jun 30 11:11:46 MS homebridge[11214]: [2017-6-30 11:11:46] [Tado] obj = {"tadoMode":"HOME","geolocationOverride":false,"geolocationOverrideDisableTime":null,"preparation":null,"setting":{"type":"AIR_CONDITIONING","power":"OFF"},"overlayType":"MANUAL","overlay":{"type":"MANUAL","setting":{"type":"AIR_CONDITIONING","power":"OFF"},"termination":{"type":"MANUAL","projectedExpiry":null}},"openWindow":null,"link":{"state":"ONLINE"},"activityDataPoints":{},"sensorDataPoints":{"insideTemperature":{"celsius":24.71,"fahrenheit":76.48,"timestamp":"2017-06-30T18:11:22.881Z","type":"TEMPERATURE","precision":{"celsius":0.1,"fahrenheit":0.1}},"humidity":{"type":"PERCENTAGE","percentage":57.4,"timestamp":"2017-06-30T18:11:22.881Z"}}}
Jun 30 11:11:46 MS homebridge[11214]: [2017-6-30 11:11:46] [Tado] Target temperature is unavailable
Jun 30 11:11:46 MS homebridge[11214]: [2017-6-30 11:11:46] [Tado] obj = {"tadoMode":"HOME","geolocationOverride":false,"geolocationOverrideDisableTime":null,"preparation":null,"setting":{"type":"AIR_CONDITIONING","power":"OFF"},"overlayType":"MANUAL","overlay":{"type":"MANUAL","setting":{"type":"AIR_CONDITIONING","power":"OFF"},"termination":{"type":"MANUAL","projectedExpiry":null}},"openWindow":null,"link":{"state":"ONLINE"},"activityDataPoints":{},"sensorDataPoints":{"insideTemperature":{"celsius":24.71,"fahrenheit":76.48,"timestamp":"2017-06-30T18:11:22.881Z","type":"TEMPERATURE","precision":{"celsius":0.1,"fahrenheit":0.1}},"humidity":{"type":"PERCENTAGE","percentage":57.4,"timestamp":"2017-06-30T18:11:22.881Z"}}}
Jun 30 11:11:46 MS homebridge[11214]: [2017-6-30 11:11:46] [Tado] Room temperature is 76.48ºF
Jun 30 11:11:46 MS homebridge[11214]: [2017-6-30 11:11:46] [Tado] obj = {"tadoMode":"HOME","geolocationOverride":false,"geolocationOverrideDisableTime":null,"preparation":null,"setting":{"type":"AIR_CONDITIONING","power":"OFF"},"overlayType":"MANUAL","overlay":{"type":"MANUAL","setting":{"type":"AIR_CONDITIONING","power":"OFF"},"termination":{"type":"MANUAL","projectedExpiry":null}},"openWindow":null,"link":{"state":"ONLINE"},"activityDataPoints":{},"sensorDataPoints":{"insideTemperature":{"celsius":24.71,"fahrenheit":76.48,"timestamp":"2017-06-30T18:11:22.881Z","type":"TEMPERATURE","precision":{"celsius":0.1,"fahrenheit":0.1}},"humidity":{"type":"PERCENTAGE","percentage":57.4,"timestamp":"2017-06-30T18:11:22.881Z"}}}
Jun 30 11:11:46 MS homebridge[11214]: [2017-6-30 11:11:46] [Tado] Target operating state is OFF
Jun 30 11:11:46 MS homebridge[11214]: [2017-6-30 11:11:46] [Tado] obj = {"tadoMode":"HOME","geolocationOverride":false,"geolocationOverrideDisableTime":null,"preparation":null,"setting":{"type":"AIR_CONDITIONING","power":"OFF"},"overlayType":"MANUAL","overlay":{"type":"MANUAL","setting":{"type":"AIR_CONDITIONING","power":"OFF"},"termination":{"type":"MANUAL","projectedExpiry":null}},"openWindow":null,"link":{"state":"ONLINE"},"activityDataPoints":{},"sensorDataPoints":{"insideTemperature":{"celsius":24.71,"fahrenheit":76.48,"timestamp":"2017-06-30T18:11:22.881Z","type":"TEMPERATURE","precision":{"celsius":0.1,"fahrenheit":0.1}},"humidity":{"type":"PERCENTAGE","percentage":57.4,"timestamp":"2017-06-30T18:11:22.881Z"}}}
Jun 30 11:11:46 MS homebridge[11214]: [2017-6-30 11:11:46] [Tado] Current zone mode is undefined
Jun 30 11:11:46 MS homebridge[11214]: [2017-6-30 11:11:46] [Tado] Current power state is OFF
Jun 30 11:11:46 MS homebridge[11214]: [2017-6-30 11:11:46] [Tado] Current operating state is OFF
Jun 30 11:12:10 MS homebridge[11214]: [2017-6-30 11:12:10] [Tado] Force cooling
Jun 30 11:12:10 MS homebridge[11214]: [2017-6-30 11:12:10] [Tado] Set target temperature to 65º

Thats it(

nitaybz commented 7 years ago

please install again the logs version

alexsalex commented 7 years ago

No crush, work for one time, and stop working... But no crush.

Jun 30 11:23:50 MediaStorage homebridge[12146]: [2017-6-30 11:23:50] Homebridge is running on port 51826.
Jun 30 11:24:06 MediaStorage homebridge[12146]: [2017-6-30 11:24:06] [Tado] The current temperature display unit is ºF
Jun 30 11:24:07 MediaStorage homebridge[12146]: [2017-6-30 11:24:07] [Tado] obj = {"tadoMode":"HOME","geolocationOverride":false,"geolocationOverrideDisableTime":null,"preparation":null,"setting":{"type":"AIR_CONDITIONING","power":"OFF"},"overlayType":"MANUAL","overlay":{"type":"MANUAL","setting":{"type":"AIR_CONDITIONING","power":"OFF"},"termination":{"type":"MANUAL","projectedExpiry":null}},"openWindow":null,"link":{"state":"ONLINE"},"activityDataPoints":{},"sensorDataPoints":{"insideTemperature":{"celsius":24.87,"fahrenheit":76.77,"timestamp":"2017-06-30T18:24:05.975Z","type":"TEMPERATURE","precision":{"celsius":0.1,"fahrenheit":0.1}},"humidity":{"type":"PERCENTAGE","percentage":57.8,"timestamp":"2017-06-30T18:24:05.975Z"}}}
Jun 30 11:24:07 MediaStorage homebridge[12146]: [2017-6-30 11:24:07] [Tado] Target operating state is OFF
Jun 30 11:24:07 MediaStorage homebridge[12146]: [2017-6-30 11:24:07] [Tado] obj = {"tadoMode":"HOME","geolocationOverride":false,"geolocationOverrideDisableTime":null,"preparation":null,"setting":{"type":"AIR_CONDITIONING","power":"OFF"},"overlayType":"MANUAL","overlay":{"type":"MANUAL","setting":{"type":"AIR_CONDITIONING","power":"OFF"},"termination":{"type":"MANUAL","projectedExpiry":null}},"openWindow":null,"link":{"state":"ONLINE"},"activityDataPoints":{},"sensorDataPoints":{"insideTemperature":{"celsius":24.87,"fahrenheit":76.77,"timestamp":"2017-06-30T18:24:05.975Z","type":"TEMPERATURE","precision":{"celsius":0.1,"fahrenheit":0.1}},"humidity":{"type":"PERCENTAGE","percentage":57.8,"timestamp":"2017-06-30T18:24:05.975Z"}}}
Jun 30 11:24:07 MediaStorage homebridge[12146]: [2017-6-30 11:24:07] [Tado] Target temperature is unavailable
Jun 30 11:24:07 MediaStorage homebridge[12146]: [2017-6-30 11:24:07] [Tado] obj = {"tadoMode":"HOME","geolocationOverride":false,"geolocationOverrideDisableTime":null,"preparation":null,"setting":{"type":"AIR_CONDITIONING","power":"OFF"},"overlayType":"MANUAL","overlay":{"type":"MANUAL","setting":{"type":"AIR_CONDITIONING","power":"OFF"},"termination":{"type":"MANUAL","projectedExpiry":null}},"openWindow":null,"link":{"state":"ONLINE"},"activityDataPoints":{},"sensorDataPoints":{"insideTemperature":{"celsius":24.87,"fahrenheit":76.77,"timestamp":"2017-06-30T18:24:05.975Z","type":"TEMPERATURE","precision":{"celsius":0.1,"fahrenheit":0.1}},"humidity":{"type":"PERCENTAGE","percentage":57.8,"timestamp":"2017-06-30T18:24:05.975Z"}}}
Jun 30 11:24:07 MediaStorage homebridge[12146]: [2017-6-30 11:24:07] [Tado] Room temperature is 76.77ºF
Jun 30 11:24:07 MediaStorage homebridge[12146]: [2017-6-30 11:24:07] [Tado] obj = {"tadoMode":"HOME","geolocationOverride":false,"geolocationOverrideDisableTime":null,"preparation":null,"setting":{"type":"AIR_CONDITIONING","power":"OFF"},"overlayType":"MANUAL","overlay":{"type":"MANUAL","setting":{"type":"AIR_CONDITIONING","power":"OFF"},"termination":{"type":"MANUAL","projectedExpiry":null}},"openWindow":null,"link":{"state":"ONLINE"},"activityDataPoints":{},"sensorDataPoints":{"insideTemperature":{"celsius":24.87,"fahrenheit":76.77,"timestamp":"2017-06-30T18:24:05.975Z","type":"TEMPERATURE","precision":{"celsius":0.1,"fahrenheit":0.1}},"humidity":{"type":"PERCENTAGE","percentage":57.8,"timestamp":"2017-06-30T18:24:05.975Z"}}}
Jun 30 11:24:07 MediaStorage homebridge[12146]: [2017-6-30 11:24:07] [Tado] Current zone mode is undefined
Jun 30 11:24:07 MediaStorage homebridge[12146]: [2017-6-30 11:24:07] [Tado] Current power state is OFF
Jun 30 11:24:07 MediaStorage homebridge[12146]: [2017-6-30 11:24:07] [Tado] Current operating state is OFF
Jun 30 11:24:26 MediaStorage homebridge[12146]: [2017-6-30 11:24:26] [Tado] Force cooling
Jun 30 11:24:26 MediaStorage homebridge[12146]: [2017-6-30 11:24:26] [Tado] Set target temperature to 65º
Jun 30 11:24:26 MediaStorage homebridge[12146]: [2017-6-30 11:24:26] [Tado] zone: 1,  body: {"termination":{"type":"MANUAL"},"setting":{"power":"ON","type":"AIR_CONDITIONING","mode":"COOL","temperature":{"fahrenheit":65},"fanSpeed":"AUTO"}}
Jun 30 11:24:37 MediaStorage homebridge[12146]: [2017-6-30 11:24:37] [Tado] Set target state to off
Jun 30 11:24:37 MediaStorage homebridge[12146]: [2017-6-30 11:24:37] [Tado] zone: 1,  body: {"termination":{"type":"MANUAL"},"setting":{"power":"OFF","type":"AIR_CONDITIONING"}}
Jun 30 11:25:05 MediaStorage homebridge[12146]: [2017-6-30 11:25:05] [Tado] Set target temperature to 27º
Jun 30 11:25:05 MediaStorage homebridge[12146]: [2017-6-30 11:25:05] [Tado] zone: 1,  body: {"termination":{"type":"MANUAL"},"setting":{"power":"ON","type":"AIR_CONDITIONING","mode":"COOL","temperature":{"fahrenheit":27},"fanSpeed":"AUTO"}}
Jun 30 11:25:05 MediaStorage homebridge[12146]: [2017-6-30 11:25:05] [Tado] Set target temperature to 23º
Jun 30 11:25:05 MediaStorage homebridge[12146]: [2017-6-30 11:25:05] [Tado] zone: 1,  body: {"termination":{"type":"MANUAL"},"setting":{"power":"ON","type":"AIR_CONDITIONING","mode":"COOL","temperature":{"fahrenheit":23},"fanSpeed":"AUTO"}}
Jun 30 11:25:06 MediaStorage homebridge[12146]: [2017-6-30 11:25:06] [Tado] Set target temperature to 21º
Jun 30 11:25:06 MediaStorage homebridge[12146]: [2017-6-30 11:25:06] [Tado] zone: 1,  body: {"termination":{"type":"MANUAL"},"setting":{"power":"ON","type":"AIR_CONDITIONING","mode":"COOL","temperature":{"fahrenheit":21},"fanSpeed":"AUTO"}}
Jun 30 11:25:06 MediaStorage homebridge[12146]: [2017-6-30 11:25:06] [Tado] Set target temperature to 20º
Jun 30 11:25:06 MediaStorage homebridge[12146]: [2017-6-30 11:25:06] [Tado] zone: 1,  body: {"termination":{"type":"MANUAL"},"setting":{"power":"ON","type":"AIR_CONDITIONING","mode":"COOL","temperature":{"fahrenheit":20},"fanSpeed":"AUTO"}}
Jun 30 11:25:16 MediaStorage homebridge[12146]: [2017-6-30 11:25:16] [Tado] Force cooling
Jun 30 11:25:16 MediaStorage homebridge[12146]: [2017-6-30 11:25:16] [Tado] Set target temperature to 20º
Jun 30 11:25:16 MediaStorage homebridge[12146]: [2017-6-30 11:25:16] [Tado] zone: 1,  body: {"termination":{"type":"MANUAL"},"setting":{"power":"ON","type":"AIR_CONDITIONING","mode":"COOL","temperature":{"fahrenheit":20},"fanSpeed":"AUTO"}}
Jun 30 11:25:35 MediaStorage homebridge[12146]: [2017-6-30 11:25:35] [Tado] The current temperature display unit is ºF
Jun 30 11:25:36 MediaStorage homebridge[12146]: [2017-6-30 11:25:36] [Tado] obj = {"tadoMode":"HOME","geolocationOverride":false,"geolocationOverrideDisableTime":null,"preparation":null,"setting":{"type":"AIR_CONDITIONING","power":"OFF"},"overlayType":"MANUAL","overlay":{"type":"MANUAL","setting":{"type":"AIR_CONDITIONING","power":"OFF"},"termination":{"type":"MANUAL","projectedExpiry":null}},"openWindow":null,"link":{"state":"ONLINE"},"activityDataPoints":{},"sensorDataPoints":{"insideTemperature":{"celsius":24.88,"fahrenheit":76.78,"timestamp":"2017-06-30T18:25:05.913Z","type":"TEMPERATURE","precision":{"celsius":0.1,"fahrenheit":0.1}},"humidity":{"type":"PERCENTAGE","percentage":57.9,"timestamp":"2017-06-30T18:25:05.913Z"}}}
Jun 30 11:25:36 MediaStorage homebridge[12146]: [2017-6-30 11:25:36] [Tado] Current zone mode is undefined
Jun 30 11:25:36 MediaStorage homebridge[12146]: [2017-6-30 11:25:36] [Tado] Current power state is OFF
Jun 30 11:25:36 MediaStorage homebridge[12146]: [2017-6-30 11:25:36] [Tado] Current operating state is OFF
Jun 30 11:25:36 MediaStorage homebridge[12146]: [2017-6-30 11:25:36] [Tado] obj = {"tadoMode":"HOME","geolocationOverride":false,"geolocationOverrideDisableTime":null,"preparation":null,"setting":{"type":"AIR_CONDITIONING","power":"OFF"},"overlayType":"MANUAL","overlay":{"type":"MANUAL","setting":{"type":"AIR_CONDITIONING","power":"OFF"},"termination":{"type":"MANUAL","projectedExpiry":null}},"openWindow":null,"link":{"state":"ONLINE"},"activityDataPoints":{},"sensorDataPoints":{"insideTemperature":{"celsius":24.88,"fahrenheit":76.78,"timestamp":"2017-06-30T18:25:05.913Z","type":"TEMPERATURE","precision":{"celsius":0.1,"fahrenheit":0.1}},"humidity":{"type":"PERCENTAGE","percentage":57.9,"timestamp":"2017-06-30T18:25:05.913Z"}}}
Jun 30 11:25:36 MediaStorage homebridge[12146]: [2017-6-30 11:25:36] [Tado] Room temperature is 76.78ºF
Jun 30 11:25:36 MediaStorage homebridge[12146]: [2017-6-30 11:25:36] [Tado] obj = {"tadoMode":"HOME","geolocationOverride":false,"geolocationOverrideDisableTime":null,"preparation":null,"setting":{"type":"AIR_CONDITIONING","power":"OFF"},"overlayType":"MANUAL","overlay":{"type":"MANUAL","setting":{"type":"AIR_CONDITIONING","power":"OFF"},"termination":{"type":"MANUAL","projectedExpiry":null}},"openWindow":null,"link":{"state":"ONLINE"},"activityDataPoints":{},"sensorDataPoints":{"insideTemperature":{"celsius":24.88,"fahrenheit":76.78,"timestamp":"2017-06-30T18:25:05.913Z","type":"TEMPERATURE","precision":{"celsius":0.1,"fahrenheit":0.1}},"humidity":{"type":"PERCENTAGE","percentage":57.9,"timestamp":"2017-06-30T18:25:05.913Z"}}}
Jun 30 11:25:36 MediaStorage homebridge[12146]: [2017-6-30 11:25:36] [Tado] Target temperature is unavailable
Jun 30 11:25:36 MediaStorage homebridge[12146]: [2017-6-30 11:25:36] [Tado] obj = {"tadoMode":"HOME","geolocationOverride":false,"geolocationOverrideDisableTime":null,"preparation":null,"setting":{"type":"AIR_CONDITIONING","power":"OFF"},"overlayType":"MANUAL","overlay":{"type":"MANUAL","setting":{"type":"AIR_CONDITIONING","power":"OFF"},"termination":{"type":"MANUAL","projectedExpiry":null}},"openWindow":null,"link":{"state":"ONLINE"},"activityDataPoints":{},"sensorDataPoints":{"insideTemperature":{"celsius":24.88,"fahrenheit":76.78,"timestamp":"2017-06-30T18:25:05.913Z","type":"TEMPERATURE","precision":{"celsius":0.1,"fahrenheit":0.1}},"humidity":{"type":"PERCENTAGE","percentage":57.9,"timestamp":"2017-06-30T18:25:05.913Z"}}}
Jun 30 11:25:36 MediaStorage homebridge[12146]: [2017-6-30 11:25:36] [Tado] Target operating state is OFF
Jun 30 11:25:42 MediaStorage homebridge[12146]: [2017-6-30 11:25:42] [Tado] Force cooling
Jun 30 11:25:42 MediaStorage homebridge[12146]: [2017-6-30 11:25:42] [Tado] Set target temperature to 20º
Jun 30 11:25:42 MediaStorage homebridge[12146]: [2017-6-30 11:25:42] [Tado] zone: 1,  body: {"termination":{"type":"MANUAL"},"setting":{"power":"ON","type":"AIR_CONDITIONING","mode":"COOL","temperature":{"fahrenheit":20},"fanSpeed":"AUTO"}}

I think something wrong with "fahrenheit":22 here:

Jun 30 11:24:26 MediaStorage homebridge[12146]: [2017-6-30 11:24:26] [Tado] Force cooling
Jun 30 11:24:26 MediaStorage homebridge[12146]: [2017-6-30 11:24:26] [Tado] Set target temperature to 65º
Jun 30 11:24:26 MediaStorage homebridge[12146]: [2017-6-30 11:24:26] [Tado] zone: 1,  body: {"termination":{"type":"MANUAL"},"setting":{"power":"ON","type":"AIR_CONDITIONING","mode":"COOL","temperature":{"fahrenheit":65},"fanSpeed":"AUTO"}}
Jun 30 11:24:37 MediaStorage homebridge[12146]: [2017-6-30 11:24:37] [Tado] Set target state to off
Jun 30 11:24:37 MediaStorage homebridge[12146]: [2017-6-30 11:24:37] [Tado] zone: 1,  body: {"termination":{"type":"MANUAL"},"setting":{"power":"OFF","type":"AIR_CONDITIONING"}}
Jun 30 11:25:05 MediaStorage homebridge[12146]: [2017-6-30 11:25:05] [Tado] Set target temperature to 27º
Jun 30 11:25:05 MediaStorage homebridge[12146]: [2017-6-30 11:25:05] [Tado] zone: 1,  body: {"termination":{"type":"MANUAL"},"setting":{"power":"ON","type":"AIR_CONDITIONING","mode":"COOL","temperature":{"fahrenheit":27},"fanSpeed":"AUTO"}}
Jun 30 11:25:05 MediaStorage homebridge[12146]: [2017-6-30 11:25:05] [Tado] Set target temperature to 23º
Jun 30 11:25:05 MediaStorage homebridge[12146]: [2017-6-30 11:25:05] [Tado] zone: 1,  body: {"termination":{"type":"MANUAL"},"setting":{"power":"ON","type":"AIR_CONDITIONING","mode":"COOL","temperature":{"fahrenheit":23},"fanSpeed":"AUTO"}}
Jun 30 11:25:06 MediaStorage homebridge[12146]: [2017-6-30 11:25:06] [Tado] Set target temperature to 21º
Jun 30 11:25:06 MediaStorage homebridge[12146]: [2017-6-30 11:25:06] [Tado] zone: 1,  body: {"termination":{"type":"MANUAL"},"setting":{"power":"ON","type":"AIR_CONDITIONING","mode":"COOL","temperature":{"fahrenheit":21},"fanSpeed":"AUTO"}}
Jun 30 11:25:06 MediaStorage homebridge[12146]: [2017-6-30 11:25:06] [Tado] Set target temperature to 20º
Jun 30 11:25:06 MediaStorage homebridge[12146]: [2017-6-30 11:25:06] [Tado] zone: 1,  body: {"termination":{"type":"MANUAL"},"setting":{"power":"ON","type":"AIR_CONDITIONING","mode":"COOL","temperature":{"fahrenheit":20},"fanSpeed":"AUTO"}}
Jun 30 11:25:16 MediaStorage homebridge[12146]: [2017-6-30 11:25:16] [Tado] Force cooling
Jun 30 11:25:16 MediaStorage homebridge[12146]: [2017-6-30 11:25:16] [Tado] Set target temperature to 20º

I think right now you HATE fahrenheit)))))

nitaybz commented 7 years ago

just updated the code again now, please try the logs version

nitaybz commented 7 years ago

it always been a problem with Fahrenheit :) but I think I've managed to overcome this, let me know how it goes

alexsalex commented 7 years ago

Man, you want to freeze me? ))))

Jun 30 11:38:27 MediaStorage homebridge[13360]: [2017-6-30 11:38:27] [Tado] Current zone mode is undefined
Jun 30 11:38:27 MediaStorage homebridge[13360]: [2017-6-30 11:38:27] [Tado] Current power state is OFF
Jun 30 11:38:27 MediaStorage homebridge[13360]: [2017-6-30 11:38:27] [Tado] Current operating state is OFF
Jun 30 11:38:33 MediaStorage homebridge[13360]: [2017-6-30 11:38:33] [Tado] Force cooling
Jun 30 11:38:33 MediaStorage homebridge[13360]: [2017-6-30 11:38:33] [Tado] Set target temperature to -6º
Jun 30 11:38:33 MediaStorage homebridge[13360]: [2017-6-30 11:38:33] [Tado] zone: 1,  body: {"termination":{"type":"MANUAL"},"setting":{"power":"ON","type":"AIR_CONDITIONING","mode":"COOL","temperature":{"fahrenheit":-6},"fanSpeed":"AUTO"}}

-6 fahrenheit = -21 celsius

nitaybz commented 7 years ago

can you please explain on your previous logs:

Jun 30 11:24:26 MediaStorage homebridge[12146]: [2017-6-30 11:24:26] [Tado] Force cooling
Jun 30 11:24:26 MediaStorage homebridge[12146]: [2017-6-30 11:24:26] [Tado] Set target temperature to 65º
Jun 30 11:24:26 MediaStorage homebridge[12146]: [2017-6-30 11:24:26] [Tado] zone: 1,  body: {"termination":{"type":"MANUAL"},"setting":{"power":"ON","type":"AIR_CONDITIONING","mode":"COOL","temperature":{"fahrenheit":65},"fanSpeed":"AUTO"}}
Jun 30 11:24:37 MediaStorage homebridge[12146]: [2017-6-30 11:24:37] [Tado] Set target state to off
Jun 30 11:24:37 MediaStorage homebridge[12146]: [2017-6-30 11:24:37] [Tado] zone: 1,  body: {"termination":{"type":"MANUAL"},"setting":{"power":"OFF","type":"AIR_CONDITIONING"}}
Jun 30 11:25:05 MediaStorage homebridge[12146]: [2017-6-30 11:25:05] [Tado] Set target temperature to 27º
Jun 30 11:25:05 MediaStorage homebridge[12146]: [2017-6-30 11:25:05] [Tado] zone: 1,  body: {"termination":{"type":"MANUAL"},"setting":{"power":"ON","type":"AIR_CONDITIONING","mode":"COOL","temperature":{"fahrenheit":27},"fanSpeed":"AUTO"}}
Jun 30 11:25:05 MediaStorage homebridge[12146]: [2017-6-30 11:25:05] [Tado] Set target temperature to 23º
Jun 30 11:25:05 MediaStorage homebridge[12146]: [2017-6-30 11:25:05] [Tado] zone: 1,  body: {"termination":{"type":"MANUAL"},"setting":{"power":"ON","type":"AIR_CONDITIONING","mode":"COOL","temperature":{"fahrenheit":23},"fanSpeed":"AUTO"}}
Jun 30 11:25:06 MediaStorage homebridge[12146]: [2017-6-30 11:25:06] [Tado] Set target temperature to 21º
Jun 30 11:25:06 MediaStorage homebridge[12146]: [2017-6-30 11:25:06] [Tado] zone: 1,  body: {"termination":{"type":"MANUAL"},"setting":{"power":"ON","type":"AIR_CONDITIONING","mode":"COOL","temperature":{"fahrenheit":21},"fanSpeed":"AUTO"}}
Jun 30 11:25:06 MediaStorage homebridge[12146]: [2017-6-30 11:25:06] [Tado] Set target temperature to 20º
Jun 30 11:25:06 MediaStorage homebridge[12146]: [2017-6-30 11:25:06] [Tado] zone: 1,  body: {"termination":{"type":"MANUAL"},"setting":{"power":"ON","type":"AIR_CONDITIONING","mode":"COOL","temperature":{"fahrenheit":20},"fanSpeed":"AUTO"}}
Jun 30 11:25:16 MediaStorage homebridge[12146]: [2017-6-30 11:25:16] [Tado] Force cooling
Jun 30 11:25:16 MediaStorage homebridge[12146]: [2017-6-30 11:25:16] [Tado] Set target temperature to 20º

what did you do first, and second, tell me every step of your use that created this log

alexsalex commented 7 years ago

It's easy) I turn on cooling in HK, without changing temp. Then turn it off by HK. Then I try to change temp from HK and turn it on. That's it.

Jun 30 11:50:02 MediaStorage homebridge[13360]: [2017-6-30 11:50:02] [Tado] Force cooling
Jun 30 11:50:02 MediaStorage homebridge[13360]: [2017-6-30 11:50:02] [Tado] Set target temperature to -34º
Jun 30 11:50:02 MediaStorage homebridge[13360]: [2017-6-30 11:50:02] [Tado] zone: 1,  body: {"termination":{"type":"MANUAL"},"setting":{"power":"ON","type":"AIR_CONDITIONING","mode":"COOL","temperature":{"fahrenheit":-34},"fanSpeed":"AUTO"}}
Jun 30 11:50:08 MediaStorage homebridge[13360]: [2017-6-30 11:50:08] [Tado] Set target temperature to 21º
Jun 30 11:50:08 MediaStorage homebridge[13360]: [2017-6-30 11:50:08] [Tado] zone: 1,  body: {"termination":{"type":"MANUAL"},"setting":{"power":"ON","type":"AIR_CONDITIONING","mode":"COOL","temperature":{"fahrenheit":21},"fanSpeed":"AUTO"}}

but now no crush!

nitaybz commented 7 years ago

lets try again the logs version... and please delete everything related to this plugin from the persist folder before starting homebridge again

alexsalex commented 7 years ago

So far it works!

Jun 30 12:03:23 MediaStorage homebridge[14866]: [2017-6-30 12:03:23] [Tado] Force cooling
Jun 30 12:03:23 MediaStorage homebridge[14866]: [2017-6-30 12:03:23] [Tado] Set target temperature to 25º
Jun 30 12:03:23 MediaStorage homebridge[14866]: [2017-6-30 12:03:23] [Tado] zone: 1,  body: {"termination":{"type":"MANUAL"},"setting":{"power":"ON","type":"AIR_CONDITIONING","mode":"COOL","temperature":{"fahrenheit":25},"fanSpeed":"AUTO"}}
Jun 30 12:03:30 MediaStorage homebridge[14866]: [2017-6-30 12:03:30] [Tado] Set target temperature to 70º
Jun 30 12:03:30 MediaStorage homebridge[14866]: [2017-6-30 12:03:30] [Tado] zone: 1,  body: {"termination":{"type":"MANUAL"},"setting":{"power":"ON","type":"AIR_CONDITIONING","mode":"COOL","temperature":{"fahrenheit":70},"fanSpeed":"AUTO"}}
Jun 30 12:03:38 MediaStorage homebridge[14866]: [2017-6-30 12:03:38] [Tado] Set target temperature to 68º
Jun 30 12:03:38 MediaStorage homebridge[14866]: [2017-6-30 12:03:38] [Tado] zone: 1,  body: {"termination":{"type":"MANUAL"},"setting":{"power":"ON","type":"AIR_CONDITIONING","mode":"COOL","temperature":{"fahrenheit":68},"fanSpeed":"AUTO"}}
Jun 30 12:03:39 MediaStorage homebridge[14866]: [2017-6-30 12:03:39] [Tado] Set target temperature to 66º
Jun 30 12:03:39 MediaStorage homebridge[14866]: [2017-6-30 12:03:39] [Tado] zone: 1,  body: {"termination":{"type":"MANUAL"},"setting":{"power":"ON","type":"AIR_CONDITIONING","mode":"COOL","temperature":{"fahrenheit":66},"fanSpeed":"AUTO"}}
Jun 30 12:03:50 MediaStorage homebridge[14866]: [2017-6-30 12:03:50] [Tado] Set target state to off
Jun 30 12:03:50 MediaStorage homebridge[14866]: [2017-6-30 12:03:50] [Tado] zone: 1,  body: {"termination":{"type":"MANUAL"},"setting":{"power":"OFF","type":"AIR_CONDITIONING"}}
Jun 30 12:04:03 MediaStorage homebridge[14866]: [2017-6-30 12:04:03] [Tado] Force cooling
Jun 30 12:04:03 MediaStorage homebridge[14866]: [2017-6-30 12:04:03] [Tado] Set target temperature to 66º
Jun 30 12:04:03 MediaStorage homebridge[14866]: [2017-6-30 12:04:03] [Tado] zone: 1,  body: {"termination":{"type":"MANUAL"},"setting":{"power":"ON","type":"AIR_CONDITIONING","mode":"COOL","temperature":{"fahrenheit":66},"fanSpeed":"AUTO"}}
Jun 30 12:04:12 MediaStorage homebridge[14866]: [2017-6-30 12:04:12] [Tado] Set target temperature to 73º
Jun 30 12:04:12 MediaStorage homebridge[14866]: [2017-6-30 12:04:12] [Tado] zone: 1,  body: {"termination":{"type":"MANUAL"},"setting":{"power":"ON","type":"AIR_CONDITIONING","mode":"COOL","temperature":{"fahrenheit":73},"fanSpeed":"AUTO"}}
Jun 30 12:04:14 MediaStorage homebridge[14866]: [2017-6-30 12:04:14] [Tado] Set target temperature to 72º
Jun 30 12:04:14 MediaStorage homebridge[14866]: [2017-6-30 12:04:14] [Tado] zone: 1,  body: {"termination":{"type":"MANUAL"},"setting":{"power":"ON","type":"AIR_CONDITIONING","mode":"COOL","temperature":{"fahrenheit":72},"fanSpeed":"AUTO"}}
Jun 30 12:04:18 MediaStorage homebridge[14866]: [2017-6-30 12:04:18] [Tado] Set target temperature to 70º
Jun 30 12:04:18 MediaStorage homebridge[14866]: [2017-6-30 12:04:18] [Tado] zone: 1,  body: {"termination":{"type":"MANUAL"},"setting":{"power":"ON","type":"AIR_CONDITIONING","mode":"COOL","temperature":{"fahrenheit":70},"fanSpeed":"AUTO"}}
Jun 30 12:04:25 MediaStorage homebridge[14866]: [2017-6-30 12:04:25] [Tado] Set target state to off
Jun 30 12:04:25 MediaStorage homebridge[14866]: [2017-6-30 12:04:25] [Tado] zone: 1,  body: {"termination":{"type":"MANUAL"},"setting":{"power":"OFF","type":"AIR_CONDITIONING"}}

but first 3 lines... something...

nitaybz commented 7 years ago

so everything works except the first command?

alexsalex commented 7 years ago

yes) now it works without any error like this. I think it was from old config. let me restart HB and try again.

Perfect, without any problem! THX!!!

nitaybz commented 7 years ago

ok I discovered why it happened, I fixed it with a new version, if you reinstall and delete persist next time you start the cool mode it will show you 77 degrees, since it doesn't have a history it's starting with a neutral degree. after you set your desired degree from within Home App or Tado App it will collect that number and use it the next time you turn on the ac with any command. just to be clear, when the AC is off you can turn it on in 3 different ways, by telling Siri to turn it ON, (it will turn it on with the last state and temperature), by setting it to COOL/HEAT state (it will set it with the last temperature in the memory), by setting it to a temperature of your desire (it will turn it ON with the last state COOL/HEAT).

please try my latest version, if you give me the OK I'll remove the extra logs and publish to NPM.

alexsalex commented 7 years ago

Works perfectly! ) Without any problem! I have another quest for you) but it will be in different topic)))

Thank you so much for your help!

nitaybz commented 7 years ago

no problem :)

nitaybz commented 7 years ago

hey @alexsalex ! New version is available to download... v 2.0 this version require a whole new config, please read README.md file before installing. sudo npm install -g homebridge-tado-ac

This version will give you much more control on your AC device including Fan mode, swing & rotation speed control.

I would love to get your feedback on that!

Please submit new issues (or feedback) to the New Git which has the same name but it's completely new. the Old Git will not be supported anymore

Thanks a lot!