AirCon icon indicating copy to clipboard operation
AirCon copied to clipboard

Status not updated

Open dovrose opened this issue 4 years ago • 11 comments

Hi,

I noticed if I use the remote control to turn on/off or change the temperatures, the MQTT is not updated with the new data. How can I force update every from server side to have updated status of the AC? Thank you,

Dov

dovrose avatar Jan 06 '21 07:01 dovrose

Do you have solution to the problem? When using the remote the status isn't changed in HA. the new available update every few sec, but other properties aren't.

dovrose avatar Jan 10 '21 07:01 dovrose

I tried to solved this, but no luck. can you point me to the right place to try to refresh the AC status incase the user change the setting with the remote ? like: power on/off, temp change.....

Dov

dovrose avatar Jan 12 '21 07:01 dovrose

I'm not sure why you're seeing that. On every change, the AC is POSTing to /local_lan/property/datapoint.json, with the relevant update. You should be seeing that in the logs. This is mapped to query_handlers.property_update_handler, to update the internal state and subsequently also the MQTT clients, using the notifier.

deiger avatar Jan 13 '21 18:01 deiger

In the log is see the following (only partial log)

I0116 11:58:23.252 web_log.py:233] 192.168.30.44 [16/Jan/2021:09:58:23 +0000] "POST /local_lan/property/datapoint.json?cmd_id=987&status=200 HTTP/1.1" 200 149 "-" "-" I0116 11:58:23.460 query_handlers.py:135] Decrypted: {"seq_no":1079,"data":{"name":"t_work_mode","base_type":"integer","value":1}} I0116 11:58:23.462 web_log.py:233] 192.168.30.43 [16/Jan/2021:09:58:23 +0000] "POST /local_lan/property/datapoint.json?cmd_id=989&status=200 HTTP/1.1" 200 149 "-" "-" I0116 11:58:23.545 web_log.py:233] 192.168.30.40 [16/Jan/2021:09:58:23 +0000] "GET /local_lan/commands.json HTTP/1.1" 200 481 "-" "-" I0116 11:58:23.650 web_log.py:233] 192.168.30.44 [16/Jan/2021:09:58:23 +0000] "GET /local_lan/commands.json HTTP/1.1" 200 481 "-" "-" I0116 11:58:23.715 web_log.py:233] 192.168.30.41 [16/Jan/2021:09:58:23 +0000] "GET /local_lan/commands.json HTTP/1.1" 200 481 "-" "-" I0116 11:58:24.416 query_handlers.py:135] Decrypted: {"seq_no":1079,"data":{"name":"t_work_mode","base_type":"integer","value":1}} I0116 11:58:24.418 web_log.py:233] 192.168.30.42 [16/Jan/2021:09:58:24 +0000] "POST /local_lan/property/datapoint.json?cmd_id=989&status=200 HTTP/1.1" 200 149 "-" "-" I0116 11:58:24.885 query_handlers.py:135] Decrypted: {"seq_no":1079,"data":{"name":"t_work_mode","base_type":"integer","value":1}}

maybe it don't have the right control_value ?

do I need to use wire shark to find them? what exactly to look for?

dovrose avatar Jan 16 '21 10:01 dovrose

It t_work_mode all you see? Try restarting the addon, and then do refresh on the log until you get the logs in. There should be a lot of incoming variables.

deiger avatar Jan 16 '21 11:01 deiger

I can recive some data, here is anohter part of it (after restart):

I0116 13:39:23.497 query_handlers.py:135] Decrypted: {"seq_no":11400,"data":{"name":"f_e_arkgrille","base_type":"boolean","value":0}} I0116 13:39:23.499 web_log.py:233] 192.168.30.44 [16/Jan/2021:11:39:23 +0000] "POST /local_lan/property/datapoint.json?cmd_id=1&status=200 HTTP/1.1" 200 149 "-" "-" D0116 13:39:23.640 query_handlers.py:121] Encrypting: {"seq_no": 2, "data": {"cmds": [{"cmd": {"method": "GET", "resource": "property.json?name=f_e_incoiltemp", "uri": "/local_lan/property/datapoint.json", "data": "", "cmd_id": 2}}]}} I0116 13:39:23.642 web_log.py:233] 192.168.30.43 [16/Jan/2021:11:39:23 +0000] "GET /local_lan/commands.json HTTP/1.1" 200 481 "-" "-" I0116 13:39:23.710 query_handlers.py:135] Decrypted: {"seq_no":11397,"data":{"name":"f_e_arkgrille","base_type":"boolean","value":0}} I0116 13:39:23.711 web_log.py:233] 192.168.30.42 [16/Jan/2021:11:39:23 +0000] "POST /local_lan/property/datapoint.json?cmd_id=1&status=200 HTTP/1.1" 200 149 "-" "-" D0116 13:39:23.776 notifier.py:113] [KeepAlive] Sending PUT http://192.168.30.42/local_reg.json {"local_reg": {"ip": "192.168.30.222", "notify": 1, "port": 8888, "uri": "/local_lan"}} D0116 13:39:24.000 notifier.py:113] [KeepAlive] Sending PUT http://192.168.30.40/local_reg.json {"local_reg": {"ip": "192.168.30.222", "notify": 1, "port": 8888, "uri": "/local_lan"}} D0116 13:39:24.019 query_handlers.py:121] Encrypting: {"seq_no": 2, "data": {"cmds": [{"cmd": {"method": "GET", "resource": "property.json?name=f_e_incoiltemp", "uri": "/local_lan/property/datapoint.json", "data": "", "cmd_id": 2}}]}} I0116 13:39:24.021 web_log.py:233] 192.168.30.44 [16/Jan/2021:11:39:24 +0000] "GET /local_lan/commands.json HTTP/1.1" 200 481 "-" "-" D0116 13:39:24.245 query_handlers.py:121] Encrypting: {"seq_no": 2, "data": {"cmds": [{"cmd": {"method": "GET", "resource": "property.json?name=f_e_incoiltemp", "uri": "/local_lan/property/datapoint.json", "data": "", "cmd_id": 2}}]}} I0116 13:39:24.248 web_log.py:233] 192.168.30.42 [16/Jan/2021:11:39:24 +0000] "GET /local_lan/commands.json HTTP/1.1" 200 481 "-" "-" I0116 13:39:24.298 query_handlers.py:135] Decrypted: {"seq_no":728,"data":{"name":"f_e_arkgrille","base_type":"boolean","value":0}} I0116 13:39:24.301 web_log.py:233] 192.168.30.41 [16/Jan/2021:11:39:24 +0000] "POST /local_lan/property/datapoint.json?cmd_id=1&status=200 HTTP/1.1" 200 149 "-" "-" I0116 13:39:24.345 query_handlers.py:135] Decrypted: {"seq_no":11398,"data":{"name":"f_e_arkgrille","base_type":"boolean","value":0}} I0116 13:39:24.347 web_log.py:233] 192.168.30.40 [16/Jan/2021:11:39:24 +0000] "POST /local_lan/property/datapoint.json?cmd_id=1&status=200 HTTP/1.1" 200 149 "-" "-" D0116 13:39:24.573 notifier.py:113] [KeepAlive] Sending PUT http://192.168.30.41/local_reg.json {"local_reg": {"ip": "192.168.30.222", "notify": 1, "port": 8888, "uri": "/local_lan"}} D0116 13:39:24.827 notifier.py:113] [KeepAlive] Sending PUT http://192.168.30.43/local_reg.json {"local_reg": {"ip": "192.168.30.222", "notify": 1, "port": 8888, "uri": "/local_lan"}} D0116 13:39:24.834 query_handlers.py:121] Encrypting: {"seq_no": 2, "data": {"cmds": [{"cmd": {"method": "GET", "resource": "property.json?name=f_e_incoiltemp", "uri": "/local_lan/property/datapoint.json", "data": "", "cmd_id": 2}}]}} I0116 13:39:24.836 web_log.py:233] 192.168.30.40 [16/Jan/2021:11:39:24 +0000] "GET /local_lan/commands.json HTTP/1.1" 200 481 "-" "-" I0116 13:39:24.923 query_handlers.py:135] Decrypted: {"seq_no":9257,"data":{"name":"f_e_incoiltemp","base_type":"boolean","value":0}} I0116 13:39:24.925 web_log.py:233] 192.168.30.43 [16/Jan/2021:11:39:24 +0000] "POST /local_lan/property/datapoint.json?cmd_id=2&status=200 HTTP/1.1" 200 149 "-" "-" D0116 13:39:24.944 query_handlers.py:121] Encrypting: {"seq_no": 2, "data": {"cmds": [{"cmd": {"method": "GET", "resource": "property.json?name=f_e_incoiltemp", "uri": "/local_lan/property/datapoint.json", "data": "", "cmd_id": 2}}]}} I0116 13:39:24.945 web_log.py:233] 192.168.30.41 [16/Jan/2021:11:39:24 +0000] "GET /local_lan/commands.json HTTP/1.1" 200 481 "-" "-" D0116 13:39:25.086 notifier.py:113] [KeepAlive] Sending PUT http://192.168.30.44/local_reg.json {"local_reg": {"ip": "192.168.30.222", "notify": 1, "port": 8888, "uri": "/local_lan"}} D0116 13:39:25.415 query_handlers.py:121] Encrypting: {"seq_no": 3, "data": {"cmds": [{"cmd": {"method": "GET", "resource": "property.json?name=f_e_incom", "uri": "/local_lan/property/datapoint.json", "data": "", "cmd_id": 3}}]}} I0116 13:39:25.417 web_log.py:233] 192.168.30.43 [16/Jan/2021:11:39:25 +0000] "GET /local_lan/commands.json HTTP/1.1" 200 461 "-" "-" I0116 13:39:25.437 query_handlers.py:135] Decrypted: {"seq_no":11401,"data":{"name":"f_e_incoiltemp","base_type":"boolean","value":0}} I0116 13:39:25.439 web_log.py:233] 192.168.30.44 [16/Jan/2021:11:39:25 +0000] "POST /local_lan/property/datapoint.json?cmd_id=2&status=200 HTTP/1.1" 200 149 "-" "-" I0116 13:39:25.540 query_handlers.py:135] Decrypted: {"seq_no":11398,"data":{"name":"f_e_incoiltemp","base_type":"boolean","value":0}} I0116 13:39:25.542 web_log.py:233] 192.168.30.42 [16/Jan/2021:11:39:25 +0000] "POST /local_lan/property/datapoint.json?cmd_id=2&status=200 HTTP/1.1" 200 149 "-" "-" D0116 13:39:25.667 notifier.py:113] [KeepAlive] Sending PUT http://192.168.30.42/local_reg.json {"local_reg": {"ip": "192.168.30.222", "notify": 1, "port": 8888, "uri": "/local_lan"}} D0116 13:39:25.822 notifier.py:113] [KeepAlive] Sending PUT http://192.168.30.40/local_reg.json {"local_reg": {"ip": "192.168.30.222", "notify": 1, "port": 8888, "uri": "/local_lan"}} D0116 13:39:25.877 query_handlers.py:121] Encrypting: {"seq_no": 3, "data": {"cmds": [{"cmd": {"method": "GET", "resource": "property.json?name=f_e_incom", "uri": "/local_lan/property/datapoint.json", "data": "", "cmd_id": 3}}]}} I0116 13:39:25.879 web_log.py:233] 192.168.30.44 [16/Jan/2021:11:39:25 +0000] "GET /local_lan/commands.json HTTP/1.1" 200 461 "-" "-" D0116 13:39:26.050 query_handlers.py:121] Encrypting: {"seq_no": 3, "data": {"cmds": [{"cmd": {"method": "GET", "resource": "property.json?name=f_e_incom", "uri": "/local_lan/property/datapoint.json", "data": "", "cmd_id": 3}}]}} I0116 13:39:26.052 web_log.py:233] 192.168.30.42 [16/Jan/2021:11:39:26 +0000] "GET /local_lan/commands.json HTTP/1.1" 200 461 "-" "-" I0116 13:39:26.183 query_handlers.py:135] Decrypted: {"seq_no":729,"data":{"name":"f_e_incoiltemp","base_type":"boolean","value":0}} I0116 13:39:26.185 web_log.py:233] 192.168.30.41 [16/Jan/2021:11:39:25 +0000] "POST /local_lan/property/datapoint.json?cmd_id=2&status=200 HTTP/1.1" 200 149 "-" "-" I0116 13:39:26.238 query_handlers.py:135] Decrypted: {"seq_no":11399,"data":{"name":"f_e_incoiltemp","base_type":"boolean","value":0}} I0116 13:39:26.240 web_log.py:233] 192.168.30.40 [16/Jan/2021:11:39:25 +0000] "POST /local_lan/property/datapoint.json?cmd_id=2&status=200 HTTP/1.1" 200 149 "-" "-" D0116 13:39:26.467 notifier.py:113] [KeepAlive] Sending PUT http://192.168.30.41/local_reg.json {"local_reg": {"ip": "192.168.30.222", "notify": 1, "port": 8888, "uri": "/local_lan"}} I0116 13:39:26.604 query_handlers.py:135] Decrypted: {"seq_no":9258,"data":{"name":"f_e_incom","base_type":"boolean","value":0}} I0116 13:39:26.606 web_log.py:233] 192.168.30.43 [16/Jan/2021:11:39:26 +0000] "POST /local_lan/property/datapoint.json?cmd_id=3&status=200 HTTP/1.1" 200 149 "-" "-" D0116 13:39:26.678 query_handlers.py:121] Encrypting: {"seq_no": 3, "data": {"cmds": [{"cmd": {"method": "GET", "resource": "property.json?name=f_e_incom", "uri": "/local_lan/property/datapoint.json", "data": "", "cmd_id": 3}}]}} I0116 13:39:26.681 web_log.py:233] 192.168.30.40 [16/Jan/2021:11:39:26 +0000] "GET /local_lan/commands.json HTTP/1.1" 200 461 "-" "-" D0116 13:39:26.724 notifier.py:113] [KeepAlive] Sending PUT http://192.168.30.43/local_reg.json {"local_reg": {"ip": "192.168.30.222", "notify": 1, "port": 8888, "uri": "/local_lan"}} D0116 13:39:26.885 notifier.py:113] [KeepAlive] Sending PUT http://192.168.30.44/local_reg.json {"local_reg": {"ip": "192.168.30.222", "notify": 1, "port": 8888, "uri": "/local_lan"}} D0116 13:39:26.932 query_handlers.py:121] Encrypting: {"seq_no": 3, "data": {"cmds": [{"cmd": {"method": "GET", "resource": "property.json?name=f_e_incom", "uri": "/local_lan/property/datapoint.json", "data": "", "cmd_id": 3}}]}} I0116 13:39:26.934 web_log.py:233] 192.168.30.41 [16/Jan/2021:11:39:26 +0000] "GET /local_lan/commands.json HTTP/1.1" 200 461 "-" "-" D0116 13:39:27.112 query_handlers.py:121] Encrypting: {"seq_no": 4, "data": {"cmds": [{"cmd": {"method": "GET", "resource": "property.json?name=f_e_indisplay", "uri": "/local_lan/property/datapoint.json", "data": "", "cmd_id": 4}}]}} I0116 13:39:27.115 web_log.py:233] 192.168.30.43 [16/Jan/2021:11:39:27 +0000] "GET /local_lan/commands.json HTTP/1.1" 200 481 "-" "-" I0116 13:39:27.187 query_handlers.py:135] Decrypted: {"seq_no":11402,"data":{"name":"f_e_incom","base_type":"boolean","value":0}} I0116 13:39:27.189 web_log.py:233] 192.168.30.44 [16/Jan/2021:11:39:26 +0000] "POST /local_lan/property/datapoint.json?cmd_id=3&status=200 HTTP/1.1" 200 149 "-" "-"

dovrose avatar Jan 16 '21 11:01 dovrose

The module in Tornado doesn't use t_control_value. It seems that everything works. Have you tried changing the mode or temperature and see if t_work_mode and temp are changed?

deiger avatar Jan 16 '21 12:01 deiger

everything is working except t_work_mode and temp. I'm reciving the room temp, I can control the AC with HA, but can't recive data changed with the remote. :-(

dovrose avatar Jan 16 '21 12:01 dovrose

So the problem probably because I have AEH-W4F1 controller. How can you help me to solve this issue? if I will send you the packets from the Wireshark will it help?

dovrose avatar Jan 16 '21 15:01 dovrose

Which app are you using? Is it this one? .cap file could help, though messages are encrypted, and the lan_key is needed in order to decrypt them...

deiger avatar Jan 16 '21 16:01 deiger

Yes, I'm using this one. I can share with you the lan_key (privatly) and so you can add more controllers to Aircon.

dovrose avatar Jan 17 '21 06:01 dovrose