Changing following lines in tydomMessageHandler.py worked on my tests:
line 567:
if type_of_id == 'windowFrench' or type_of_id == 'window' or type_of_id == 'klineWindowFrench' or type_of_id == 'klineWindowSliding' or type_of_id == 'windowSliding':
line 402:
if i["last_usage"] == 'shutter' or i["last_usage"] == 'klineShutter' or i["last_usage"] == 'light' or i["last_usage"] == 'window' or i["last_usage"] == 'windowFrench' or i["last_usage"] == 'windowSliding' or i["last_usage"] == 'belmDoor' or i[
log from test after bugfix:
2022-11-24 03:11:32,791 - tydomMessagehandler - INFO - Incoming data parsed successfully !
2022-11-24 03:11:55,819 - sensors - INFO - Sensor created / updated : openState_tydom__D▒tecteur_4 LOCKED
2022-11-24 03:11:55,819 - tydomMessagehandler - INFO - Incoming data parsed successfully !
Thanks a lot for your work ! Code was interesting and easy to check, especially as I have never developed in Python.
Hi,
I have k-line detectors in my k-line windows.
I have made some debug: they seem to be detected as "windowSliding" (and not "klineWindowSliding"), see json below:
Changing following lines in tydomMessageHandler.py worked on my tests:
line 567:
line 402:
log from test after bugfix:
Thanks a lot for your work ! Code was interesting and easy to check, especially as I have never developed in Python.