Salut,
Je viens de mettre à jour le plugin mais il n’arrive toujours pas à remonter les porte de garage.
Pour info, entre temps, je suis passé à la version 4.0.43 avant de finaliser mon install.
Pour les logs:
-
dans klf200, c’est vert mais il y a des exceptions
-
dans http.error, c’est rouge et j’ai des messages en lien avec klf200
Sinon, j’ai testé cette lib MiSchroe / klf-200-api et il permet de reconnaitre et piloter mes portes de garage, ainsi que mes stores io homecontrol. Par contre c’est du nodejs, mais mieux implémenté que pyvlx je pense.
Merci pour tes investigations.
Log http.error
0 /var/www/html/plugins/klf200/core/ajax/klf200.ajax.php(28): klf200::scanDevices()
#1 {main}
thrown in /var/www/html/plugins/klf200/core/class/klf200.class.php on line 161, referer: https://jeedom.mondomaine.org/index.php?v=d&m=klf200&p=klf200&id=klf200
[Sun Mar 15 23:13:27.343314 2020] [:error] [pid 2575] [client 192.168.0.25:49238] PHP Fatal error: Uncaught Error: Using $this when not in object context in /var/www/html/plugins/klf200/core/class/klf200.class.php:161
Stack trace:
#0 /var/www/html/plugins/klf200/core/ajax/klf200.ajax.php(28): klf200::scanDevices()
#1 {main}
thrown in /var/www/html/plugins/klf200/core/class/klf200.class.php on line 161, referer: https://jeedom.mondomaine.org/index.php?v=d&m=klf200&p=klf200&id=klf200
[Sun Mar 15 23:13:28.669938 2020] [:error] [pid 834] [client 192.168.0.25:49240] PHP Fatal error: Uncaught Error: Using $this when not in object context in /var/www/html/plugins/klf200/core/class/klf200.class.php:161
Log klf200
Connecting to KLF 200.
Connected to: KLF 200: Software version: 0.2.0.0.71.0, hardware version: 6, protocol version: 3.14
Exception in callback _SelectorSocketTransport._read_ready()
handle: <Handle _SelectorSocketTransport._read_ready()>
Traceback (most recent call last):
File "/usr/lib/python3.5/asyncio/events.py", line 126, in _run
self._callback(*self._args)
File "/usr/lib/python3.5/asyncio/selector_events.py", line 730, in _read_ready
self._protocol.data_received(data)
File "/usr/lib/python3.5/asyncio/sslproto.py", line 515, in data_received
self._app_protocol.data_received(chunk)
File "/usr/local/lib/python3.5/dist-packages/pyvlx/connection.py", line 52, in data_received
frame = frame_from_raw(raw)
File "/usr/local/lib/python3.5/dist-packages/pyvlx/frame_creation.py", line 40, in frame_from_raw
frame.from_payload(payload)
File "/usr/local/lib/python3.5/dist-packages/pyvlx/frames/frame_get_all_nodes_information.py", line 127, in from_payload
self.node_type = NodeTypeWithSubtype(payload[69] * 256 + payload[70])
File "/usr/lib/python3.5/enum.py", line 241, in __call__
return cls.__new__(cls, value)
File "/usr/lib/python3.5/enum.py", line 476, in __new__
raise ValueError("%r is not a valid %s" % (value, cls.__name__))
ValueError: 378 is not a valid NodeTypeWithSubtype
Exception in callback _SelectorSocketTransport._read_ready()
handle: <Handle _SelectorSocketTransport._read_ready()>
Traceback (most recent call last):
File "/usr/lib/python3.5/asyncio/events.py", line 126, in _run
self._callback(*self._args)
File "/usr/lib/python3.5/asyncio/selector_events.py", line 730, in _read_ready
self._protocol.data_received(data)
File "/usr/lib/python3.5/asyncio/sslproto.py", line 515, in data_received
self._app_protocol.data_received(chunk)
File "/usr/local/lib/python3.5/dist-packages/pyvlx/connection.py", line 52, in data_received
frame = frame_from_raw(raw)
File "/usr/local/lib/python3.5/dist-packages/pyvlx/frame_creation.py", line 40, in frame_from_raw
frame.from_payload(payload)
File "/usr/local/lib/python3.5/dist-packages/pyvlx/frames/frame_get_all_nodes_information.py", line 127, in from_payload
self.node_type = NodeTypeWithSubtype(payload[69] * 256 + payload[70])
File "/usr/lib/python3.5/enum.py", line 241, in __call__
return cls.__new__(cls, value)
File "/usr/lib/python3.5/enum.py", line 476, in __new__
raise ValueError("%r is not a valid %s" % (value, cls.__name__))
ValueError: 378 is not a valid NodeTypeWithSubtype
Number of received scenes does not match expected number
NodeTypeWithSubtype.LIGHT_ON_OFF not implemented
NodeTypeWithSubtype.LIGHT_ON_OFF not implemented
[2020-03-15 23:13:25][DEBUG] : Send http://localhost:9123/devices
[2020-03-15 23:13:25][DEBUG] : Result {"devices": [{"type": "RollerShutter", "id": 0, "name": "storesalonfacade"}, {"type": "RollerShutter", "id": 1, "name": "storesalonjardin1"}, {"type": "RollerShutter", "id": 2, "name": "storecuisine"}, {"type": "RollerShutter", "id": 3, "name": "storesalonjardin2"}, {"type": "RollerShutter", "id": 4, "name": "storepissou"}, {"type": "RollerShutter", "id": 5, "name": "storenouchi"}, {"type": "RollerShutter", "id": 6, "name": "storeaina"}, {"type": "OnOffSwitch", "id": 8, "name": "interrupteurtouran"}, {"type": "OnOffSwitch", "id": 12, "name": "interrupteurpolo"}], "result": "ok"}
[2020-03-15 23:13:26][DEBUG] : Send http://localhost:9123/devices
[2020-03-15 23:13:26][DEBUG] : Result {"devices": [{"type": "RollerShutter", "id": 0, "name": "storesalonfacade"}, {"type": "RollerShutter", "id": 1, "name": "storesalonjardin1"}, {"type": "RollerShutter", "id": 2, "name": "storecuisine"}, {"type": "RollerShutter", "id": 3, "name": "storesalonjardin2"}, {"type": "RollerShutter", "id": 4, "name": "storepissou"}, {"type": "RollerShutter", "id": 5, "name": "storenouchi"}, {"type": "RollerShutter", "id": 6, "name": "storeaina"}, {"type": "OnOffSwitch", "id": 8, "name": "interrupteurtouran"}, {"type": "OnOffSwitch", "id": 12, "name": "interrupteurpolo"}], "result": "ok"}
[2020-03-15 23:13:27][DEBUG] : Send http://localhost:9123/devices
[2020-03-15 23:13:27][DEBUG] : Result {"devices": [{"type": "RollerShutter", "id": 0, "name": "storesalonfacade"}, {"type": "RollerShutter", "id": 1, "name": "storesalonjardin1"}, {"type": "RollerShutter", "id": 2, "name": "storecuisine"}, {"type": "RollerShutter", "id": 3, "name": "storesalonjardin2"}, {"type": "RollerShutter", "id": 4, "name": "storepissou"}, {"type": "RollerShutter", "id": 5, "name": "storenouchi"}, {"type": "RollerShutter", "id": 6, "name": "storeaina"}, {"type": "OnOffSwitch", "id": 8, "name": "interrupteurtouran"}, {"type": "OnOffSwitch", "id": 12, "name": "interrupteurpolo"}], "result": "ok"}
[2020-03-15 23:13:28][DEBUG] : Send http://localhost:9123/devices
[2020-03-15 23:13:28][DEBUG] : Result {"devices": [{"type": "RollerShutter", "id": 0, "name": "storesalonfacade"}, {"type": "RollerShutter", "id": 1, "name": "storesalonjardin1"}, {"type": "RollerShutter", "id": 2, "name": "storecuisine"}, {"type": "RollerShutter", "id": 3, "name": "storesalonjardin2"}, {"type": "RollerShutter", "id": 4, "name": "storepissou"}, {"type": "RollerShutter", "id": 5, "name": "storenouchi"}, {"type": "RollerShutter", "id": 6, "name": "storeaina"}, {"type": "OnOffSwitch", "id": 8, "name": "interrupteurtouran"}, {"type": "OnOffSwitch", "id": 12, "name": "interrupteurpolo"}], "result": "ok"}
[2020-03-15 23:13:28][DEBUG] : Send http://localhost:9123/devices
[2020-03-15 23:13:28][DEBUG] : Result {"devices": [{"type": "RollerShutter", "id": 0, "name": "storesalonfacade"}, {"type": "RollerShutter", "id": 1, "name": "storesalonjardin1"}, {"type": "RollerShutter", "id": 2, "name": "storecuisine"}, {"type": "RollerShutter", "id": 3, "name": "storesalonjardin2"}, {"type": "RollerShutter", "id": 4, "name": "storepissou"}, {"type": "RollerShutter", "id": 5, "name": "storenouchi"}, {"type": "RollerShutter", "id": 6, "name": "storeaina"}, {"type": "OnOffSwitch", "id": 8, "name": "interrupteurtouran"}, {"type": "OnOffSwitch", "id": 12, "name": "interrupteurpolo"}], "result": "ok"}
[2020-03-15 23:14:02][DEBUG] : Send http://localhost:9123/devices
[2020-03-15 23:14:02][DEBUG] : Result {"devices": [{"type": "RollerShutter", "id": 0, "name": "storesalonfacade"}, {"type": "RollerShutter", "id": 1, "name": "storesalonjardin1"}, {"type": "RollerShutter", "id": 2, "name": "storecuisine"}, {"type": "RollerShutter", "id": 3, "name": "storesalonjardin2"}, {"type": "RollerShutter", "id": 4, "name": "storepissou"}, {"type": "RollerShutter", "id": 5, "name": "storenouchi"}, {"type": "RollerShutter", "id": 6, "name": "storeaina"}, {"type": "OnOffSwitch", "id": 8, "name": "interrupteurtouran"}, {"type": "OnOffSwitch", "id": 12, "name": "interrupteurpolo"}], "result": "ok"}
[2020-03-15 23:14:02][ERROR] : Erreur sur la fonction cron du plugin : Using $this when not in object context
[2020-03-15 23:15:03][DEBUG] : Send http://localhost:9123/devices
[2020-03-15 23:15:03][DEBUG] : Result {"devices": [{"type": "RollerShutter", "id": 0, "name": "storesalonfacade"}, {"type": "RollerShutter", "id": 1, "name": "storesalonjardin1"}, {"type": "RollerShutter", "id": 2, "name": "storecuisine"}, {"type": "RollerShutter", "id": 3, "name": "storesalonjardin2"}, {"type": "RollerShutter", "id": 4, "name": "storepissou"}, {"type": "RollerShutter", "id": 5, "name": "storenouchi"}, {"type": "RollerShutter", "id": 6, "name": "storeaina"}, {"type": "OnOffSwitch", "id": 8, "name": "interrupteurtouran"}, {"type": "OnOffSwitch", "id": 12, "name": "interrupteurpolo"}], "result": "ok"}
[2020-03-15 23:15:03][ERROR] : Erreur sur la fonction cron du plugin : Using $this when not in object context
[2020-03-15 23:16:02][DEBUG] : Send http://localhost:9123/devices
[2020-03-15 23:16:02][DEBUG] : Result {"devices": [{"position": 100, "type": "RollerShutter", "id": 0, "name": "storesalonfacade"}, {"position": 100, "type": "RollerShutter", "id": 1, "name": "storesalonjardin1"}, {"position": 0, "type": "RollerShutter", "id": 2, "name": "storecuisine"}, {"position": 100, "type": "RollerShutter", "id": 3, "name": "storesalonjardin2"}, {"position": 100, "type": "RollerShutter", "id": 4, "name": "storepissou"}, {"position": 100, "type": "RollerShutter", "id": 5, "name": "storenouchi"}, {"position": 100, "type": "RollerShutter", "id": 6, "name": "storeaina"}, {"type": "OnOffSwitch", "id": 8, "name": "interrupteurtouran"}, {"type": "OnOffSwitch", "id": 12, "name": "interrupteurpolo"}], "result": "ok"}
[2020-03-15 23:16:02][ERROR] : Erreur sur la fonction cron du plugin : Using $this when not in object context