jheling / freeathome

Free@Home component for Home Assistant
114 stars 41 forks source link

Error: Is not assigned to room #74

Closed stockklauser closed 3 years ago

stockklauser commented 4 years ago

Hay,

i got the following Problem, i cant get the devices form the System with the following debug message:

I have 4 Wireless Thermostates on my radistors.

2020-10-13 12:38:20 INFO (MainThread) [custom_components.freeathome.pfreeathome] Ignoring serialnumber ABB700000000, channel_id ch0000, function ID 37 since it is not assigned to a room 2020-10-13 12:38:20 INFO (MainThread) [custom_components.freeathome.pfreeathome] Ignoring serialnumber ABB700000000, channel_id ch0001, function ID 38 since it is not assigned to a room 2020-10-13 12:38:20 INFO (MainThread) [custom_components.freeathome.pfreeathome] Ignoring serialnumber ABB700000000, channel_id ch0002, function ID 134 since it is not assigned to a room 2020-10-13 12:38:20 INFO (MainThread) [custom_components.freeathome.pfreeathome] Encountered serialnumber ABB700CFXXXX, channel_id ch0000, function ID 62 2020-10-13 12:38:20 INFO (MainThread) [custom_components.freeathome.pfreeathome] Encountered serialnumber ABB700CFXXXX, channel_id ch0001, function ID 89 2020-10-13 12:38:20 INFO (MainThread) [custom_components.freeathome.pfreeathome] Encountered serialnumber ABB700CXXXX, channel_id ch0000, function ID 62 2020-10-13 12:38:20 INFO (MainThread) [custom_components.freeathome.pfreeathome] Encountered serialnumber ABB700CXXXX, channel_id ch0001, function ID 89 2020-10-13 12:38:20 INFO (MainThread) [custom_components.freeathome.pfreeathome] Encountered serialnumber ABB700DXXXX, channel_id ch0000, function ID 62 2020-10-13 12:38:20 INFO (MainThread) [custom_components.freeathome.pfreeathome] Encountered serialnumber ABB700D7XXXX, channel_id ch0001, function ID 89 2020-10-13 12:38:20 INFO (MainThread) [custom_components.freeathome.pfreeathome] Ignoring device with serialnumber ABB700DXXXX since has no channels 2020-10-13 12:38:20 INFO (MainThread) [custom_components.freeathome.pfreeathome] Encountered serialnumber ABB700CFXXXX, channel_id ch0000, function ID 62 2020-10-13 12:38:20 INFO (MainThread) [custom_components.freeathome.pfreeathome] Encountered serialnumber ABB700CXXXX, channel_id ch0001, function ID 89 2020-10-13 12:38:20 INFO (MainThread) [custom_components.freeathome.pfreeathome] Ignoring serialnumber FFFF4A00XXXX, channel_id ch0000, function ID 18944 since it is not assigned to a room 2020-10-13 12:38:20 INFO (MainThread) [custom_components.freeathome.pfreeathome] Ignoring serialnumber FFFF4A00XXXX, channel_id ch0000, function ID 18944 since it is not assigned to a room 2020-10-13 12:38:20 INFO (MainThread) [custom_components.freeathome.pfreeathome] Ignoring serialnumber FFFF4A01XXXX, channel_id ch0000, function ID 18945 since it is not assigned to a room 2020-10-13 12:38:20 INFO (MainThread) [custom_components.freeathome.pfreeathome] Ignoring serialnumber FFFF4A00XXXX, channel_id ch0000, function ID 18944 since it is not assigned to a room

Tho85 commented 4 years ago

It looks like you use the new code from PR #73, right? Thanks for your feedback.

Could you send me the output of get-master-message.py, or one of the backup files from your SysAP? You can upload them to https://paste.ubuntu.com/ if you remove any sensitive information before, or send them via email (you may find my email in one of my commits).

Did the thermostats work before? According to #56, they worked somehow, but not entirely correct. I should be able to add them to the code.

stockklauser commented 4 years ago

Hay,

sorry for the late response. Yes im using the latest patch from you.

with PR #56 i add the device ids and was able to checkout some data but it was not possible to control the temparature or mode. It was a simple integration with the current values.

I cant get a more detailed log, i think my setup is wrong

logger: default: critical logs: custom_components.freeathome: debug custom_components.freeathome.pfreeathome: debug custom_components.freeathome.fah.saslhandler: debug custom_components.freeathome.get-master-message: debug custom_components.freeathome.ItemUpdate: debug custom_components.freeathome.ItemUpdateEncrypted: debug custom_components.freeathome.Client: debug

SysAPBackup.zip

Tho85 commented 4 years ago

Could you try the newest version of my branch? I've added two candidate function IDs from your logs for the wireless thermostats. Let's see if it works.

Logging level looks fine. I've added some more logging statements for the INFO level, so no need to set it to DEBUG for now.

stockklauser commented 4 years ago

Hay Tho85,

it works nearly perfekt :D Thank you

0-20 20:24:53 INFO (MainThread) [custom_components.freeathome.fah.devices.fah_thermostat] thermostat device ABB700D793CE/ch0000 state is 0 2020-10-20 20:24:54 DEBUG (MainThread) [custom_components.freeathome.fah.pfreeathome] device Heizung Thom: sending updated datapoint ABB700D793CE/ch0000/odp0000 = 7 2020-10-20 20:24:54 INFO (MainThread) [custom_components.freeathome.fah.devices.fah_thermostat] thermostat device ABB700D793CE/ch0000 target temp is 7 2020-10-20 20:26:06 INFO (MainThread) [custom_components.freeathome.fah.pfreeathome] set_datapoint ABB700CFBA37/ch0000 idp0004 2 2020-10-20 20:26:06 INFO (MainThread) [custom_components.freeathome.fah.pfreeathome] method response: True 2020-10-20 20:26:06 DEBUG (MainThread) [custom_components.freeathome.fah.pfreeathome] device Heizung Bad: sending updated datapoint ABB700CFBA37/ch0000/idp0004 = 2 2020-10-20 20:26:06 DEBUG (MainThread) [custom_components.freeathome.fah.pfreeathome] device Heizung Bad: sending updated datapoint ABB700CFBA37/ch0000/odp0003 = 97 2020-10-20 20:26:06 INFO (MainThread) [custom_components.freeathome.fah.devices.fah_thermostat] thermostat device ABB700CFBA37/ch0000 eco mode is 97

Only the eco mode setting is not working

Tho85 commented 4 years ago

It looks like we send the wrong value to trigger eco mode (idp0004 = 2, should be 1). I've fixed it, could you try again?

stockklauser commented 4 years ago

Hay looks perfect :D

last thing i found. If i Disable (set it off) and try to enable it again it dont goes live, it still stays in the off state. And also i see the temperature is set to 7 degree.

2020-10-21 10:14:21 INFO (MainThread) [custom_components.freeathome.fah.pfreeathome] method response: True 2020-10-21 10:14:21 DEBUG (MainThread) [custom_components.freeathome.fah.pfreeathome] device Heizung Thom: sending updated datapoint ABB700D793CE/ch0000/odp0000 = 7 2020-10-21 10:14:21 INFO (MainThread) [custom_components.freeathome.fah.devices.fah_thermostat] thermostat device ABB700D793CE/ch0000 target temp is 7 2020-10-21 10:14:21 DEBUG (MainThread) [custom_components.freeathome.fah.pfreeathome] device Heizung Thom: sending updated datapoint ABB700D793CE/ch0000/odp0002 = 0 2020-10-21 10:14:21 INFO (MainThread) [custom_components.freeathome.fah.devices.fah_thermostat] thermostat device ABB700D793CE/ch0000 state is 0 2020-10-21 10:14:45 INFO (MainThread) [custom_components.freeathome.fah.pfreeathome] set_datapoint ABB700D793CE/ch0000 idp0005 0 2020-10-21 10:14:45 INFO (MainThread) [custom_components.freeathome.fah.pfreeathome] method response: True

Tho85 commented 4 years ago

The 7 degrees seem to be OK: When I set my in-wall thermostat to "off", it also sets the temperature to 7 degrees. This seems to be some kind of frost protection. The temperature then turns back to normal when I turn it on again.

Could you provide some logs from startup of HA containing the device initialization? Look for Encountered serialnumber ABB700D793CE and add device FahThermostat ABB700D793CE. Also, the logs above do not contain anything regarding turning on or off... Could you try again and post the resulting logs?

This is what it looks like for me:

Turning off:

INFO (MainThread) [custom_components.freeathome.fah.pfreeathome] set_datapoint ABB700D12345/ch0000 idp0012 0
INFO (MainThread) [custom_components.freeathome.fah.pfreeathome] method response: True
DEBUG (MainThread) [custom_components.freeathome.fah.pfreeathome] device RTR Büro (Büro): sending updated datapoint ABB700D12345/ch0000/idp0012 = 0
DEBUG (MainThread) [custom_components.freeathome.fah.pfreeathome] device RTR Büro (Büro): sending updated datapoint ABB700D12345/ch0000/odp0006 = 7
INFO (MainThread) [custom_components.freeathome.fah.devices.fah_thermostat] thermostat device ABB700D12345/ch0000 target temp is 7
DEBUG (MainThread) [custom_components.freeathome.fah.pfreeathome] device RTR Büro (Büro): sending updated datapoint ABB700D12345/ch0000/odp0008 = 0
INFO (MainThread) [custom_components.freeathome.fah.devices.fah_thermostat] thermostat device ABB700D12345/ch0000 state is 0

Turning back on:

INFO (MainThread) [custom_components.freeathome.fah.pfreeathome] set_datapoint ABB700D12345/ch0000 idp0011 0
INFO (MainThread) [custom_components.freeathome.fah.pfreeathome] method response: True
INFO (MainThread) [custom_components.freeathome.fah.pfreeathome] set_datapoint ABB700D12345/ch0000 idp0012 1
INFO (MainThread) [custom_components.freeathome.fah.pfreeathome] method response: True
DEBUG (MainThread) [custom_components.freeathome.fah.pfreeathome] device RTR Büro (Büro): sending updated datapoint ABB700D12345/ch0000/idp0012 = 1
DEBUG (MainThread) [custom_components.freeathome.fah.pfreeathome] device RTR Büro (Büro): sending updated datapoint ABB700D12345/ch0000/odp0006 = 22
INFO (MainThread) [custom_components.freeathome.fah.devices.fah_thermostat] thermostat device ABB700D12345/ch0000 target temp is 22
DEBUG (MainThread) [custom_components.freeathome.fah.pfreeathome] device RTR Büro (Büro): sending updated datapoint ABB700D12345/ch0000/odp0008 = 1
INFO (MainThread) [custom_components.freeathome.fah.devices.fah_thermostat] thermostat device ABB700D12345/ch0000 state is 1
dbrouwer1979 commented 4 years ago

Thank you for all the work. I have 6 WL roomthermostats and they seem to work fine!