Rebonjour,
En complément et en consultant les log, la première consultation est OK, la suivant génère des erreurs:
[2025-01-17 10:45:04][INFO] : Init request module v2.32.3
[2025-01-17 10:45:04][INFO] : Solarman ------ debut recup donnees de l onduleur : 145
[2025-01-17 10:45:04][INFO] : SOLARMAN------ Apikey : MMUrIZQORE6STLWMPiAjs9eRh5lxr1zLuTnsxk2y6MWEkvYDkWRvoqGbEzUntrvJ
[2025-01-17 10:45:04][INFO] : SOLARMAN------ Log level : debug
[2025-01-17 10:45:04][INFO] : SOLARMAN------ Callback : http://127.0.0.1:80/plugins/solarman/core/php/jeeSolarman.php
[2025-01-17 10:45:04][INFO] : SOLARMAN------ Cycle Sommeil : 0.5
[2025-01-17 10:45:04][INFO] : SOLARMAN------ Cycle : 0
[2025-01-17 10:45:04][INFO] : SOLARMAN------ Onduleur : Onduleur_Sofar_Solar_H3kEP
[2025-01-17 10:45:04][INFO] : SOLARMAN------ Fichier de config : sofar_hyd3k-6k-ep.yaml
[2025-01-17 10:45:04][INFO] : SOLARMAN------ Id de l equipement : 145
[2025-01-17 10:45:04][INFO] : SOLARMAN------ type de la cle wifi : LSW3
[2025-01-17 10:45:04][INFO] : SOLARMAN------ Adresse IP de la cle wifi : 192.168.1.193
[2025-01-17 10:45:04][INFO] : SOLARMAN------ Port de la cle wifi : 8899
[2025-01-17 10:45:04][INFO] : SOLARMAN------ Numero de serie de la cle wifi File : 2372529259
[2025-01-17 10:45:04][INFO] : SOLARMAN------ Id modbus de l onduleur : 1
[2025-01-17 10:45:04][INFO] : SOLARMAN------ PID : 1505488
[2025-01-17 10:45:04][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
[2025-01-17 10:45:04][DEBUG] : http://127.0.0.1:80 "GET /plugins/solarman/core/php/jeeSolarman.php?apikey=MMUrIZQORE6STLWMPiAjs9eRh5lxr1zLuTnsxk2y6MWEkvYDkWRvoqGbEzUntrvJ HTTP/11" 200 0
[2025-01-17 10:45:05][DEBUG] : Interrogation pour [8] intervalles...
[2025-01-17 10:45:05][DEBUG] : Interrogation de [0x404 - 0x41a]...
[2025-01-17 10:45:05][INFO] : Connexion au data logger 192.168.1.193:8899
[2025-01-17 10:45:05][DEBUG] : Socket setup completed... <socket.socket fd=3, family=2, type=1, proto=6, laddr=('192.168.1.153', 56394), raddr=('192.168.1.193', 8899)>
[2025-01-17 10:45:05][DEBUG] : SENT:
[2025-01-17 10:45:05][DEBUG] : RECD:
[2025-01-17 10:45:05][INFO] : Deconnexion du logger 'LSW3' 192.168.1.193:8899
[2025-01-17 10:45:05][DEBUG] : Interrogation des registres [0x404 - 0x41a] succes
[2025-01-17 10:45:05][DEBUG] : Interrogation de [0x484 - 0x4af]...
[2025-01-17 10:45:05][INFO] : Connexion au data logger 192.168.1.193:8899
[2025-01-17 10:45:05][DEBUG] : Socket setup completed... <socket.socket fd=3, family=2, type=1, proto=6, laddr=('192.168.1.153', 56406), raddr=('192.168.1.193', 8899)>
[2025-01-17 10:45:05][DEBUG] : SENT:
[2025-01-17 10:45:06][DEBUG] : RECD:
[2025-01-17 10:45:06][INFO] : Deconnexion du logger 'LSW3' 192.168.1.193:8899
[2025-01-17 10:45:06][DEBUG] : Interrogation des registres [0x484 - 0x4af] succes
[2025-01-17 10:45:06][DEBUG] : Interrogation de [0x507 - 0x50c]...
[2025-01-17 10:45:06][INFO] : Connexion au data logger 192.168.1.193:8899
[2025-01-17 10:45:06][DEBUG] : Socket setup completed... <socket.socket fd=3, family=2, type=1, proto=6, laddr=('192.168.1.153', 45440), raddr=('192.168.1.193', 8899)>
[2025-01-17 10:45:06][DEBUG] : SENT:
[2025-01-17 10:45:06][DEBUG] : RECD:
[2025-01-17 10:45:06][INFO] : Deconnexion du logger 'LSW3' 192.168.1.193:8899
[2025-01-17 10:45:07][DEBUG] : Interrogation des registres [0x507 - 0x50c] succes
[2025-01-17 10:45:07][DEBUG] : Interrogation de [0x584 - 0x589]...
[2025-01-17 10:45:07][INFO] : Connexion au data logger 192.168.1.193:8899
[2025-01-17 10:45:07][DEBUG] : Socket setup completed... <socket.socket fd=3, family=2, type=1, proto=6, laddr=('192.168.1.153', 45450), raddr=('192.168.1.193', 8899)>
[2025-01-17 10:45:07][DEBUG] : SENT:
[2025-01-17 10:45:07][DEBUG] : RECD:
[2025-01-17 10:45:07][INFO] : Deconnexion du logger 'LSW3' 192.168.1.193:8899
[2025-01-17 10:45:07][DEBUG] : Interrogation des registres [0x584 - 0x589] succes
[2025-01-17 10:45:07][DEBUG] : Interrogation de [0x604 - 0x60a]...
[2025-01-17 10:45:07][INFO] : Connexion au data logger 192.168.1.193:8899
[2025-01-17 10:45:07][DEBUG] : Socket setup completed... <socket.socket fd=3, family=2, type=1, proto=6, laddr=('192.168.1.153', 45462), raddr=('192.168.1.193', 8899)>
[2025-01-17 10:45:07][DEBUG] : SENT:
[2025-01-17 10:45:07][DEBUG] : RECD:
[2025-01-17 10:45:07][INFO] : Deconnexion du logger 'LSW3' 192.168.1.193:8899
[2025-01-17 10:45:08][DEBUG] : Interrogation des registres [0x604 - 0x60a] succes
[2025-01-17 10:45:08][DEBUG] : Interrogation de [0x684 - 0x69b]...
[2025-01-17 10:45:08][INFO] : Connexion au data logger 192.168.1.193:8899
[2025-01-17 10:45:08][DEBUG] : Socket setup completed... <socket.socket fd=3, family=2, type=1, proto=6, laddr=('192.168.1.153', 45468), raddr=('192.168.1.193', 8899)>
[2025-01-17 10:45:08][DEBUG] : SENT:
[2025-01-17 10:45:08][DEBUG] : RECD:
[2025-01-17 10:45:08][INFO] : Deconnexion du logger 'LSW3' 192.168.1.193:8899
[2025-01-17 10:45:09][DEBUG] : Interrogation des registres [0x684 - 0x69b] succes
[2025-01-17 10:45:09][DEBUG] : Interrogation de [0x1034 - 0x1034]...
[2025-01-17 10:45:09][INFO] : Connexion au data logger 192.168.1.193:8899
[2025-01-17 10:45:09][DEBUG] : Socket setup completed... <socket.socket fd=3, family=2, type=1, proto=6, laddr=('192.168.1.153', 45470), raddr=('192.168.1.193', 8899)>
[2025-01-17 10:45:09][DEBUG] : SENT:
[2025-01-17 10:45:09][DEBUG] : [POLL] Socket closed. Reader thread exiting.
[2025-01-17 10:45:09][DEBUG] : Auto-Reconnect enabled. Trying to establish a new connection
[2025-01-17 10:45:09][WARNING] : Interrogation des registres [0x1034 - 0x1034] NOK avec l'exception [NoSocketAvailableError: Connection closed on read]
[2025-01-17 10:45:09][INFO] : Deconnexion du logger 'LSW3' 192.168.1.193:8899
[2025-01-17 10:45:09][DEBUG] : Auto-Reconnect successful.
[2025-01-17 10:45:09][WARNING] : Interrogation des registres [0x1034 - 0x1034] NOK, il reste [1 essai]
[2025-01-17 10:45:09][INFO] : Connexion au data logger 192.168.1.193:8899
[2025-01-17 10:45:09][DEBUG] : Socket setup completed... <socket.socket fd=3, family=2, type=1, proto=6, laddr=('192.168.1.153', 45488), raddr=('192.168.1.193', 8899)>
[2025-01-17 10:45:09][DEBUG] : [POLL] Socket closed. Reader thread exiting.
[2025-01-17 10:45:09][DEBUG] : SENT:
[2025-01-17 10:45:09][WARNING] : Interrogation des registres [0x1034 - 0x1034] NOK avec l'exception [OSError: [Errno 9] Bad file descriptor]
[2025-01-17 10:45:09][DEBUG] : Auto-Reconnect enabled. Trying to establish a new connection
[2025-01-17 10:45:09][INFO] : Deconnexion du logger 'LSW3' 192.168.1.193:8899
[2025-01-17 10:45:09][DEBUG] : Auto-Reconnect successful.
[2025-01-17 10:45:09][DEBUG] : [POLL] Socket closed. Reader thread exiting.
[2025-01-17 10:45:09][WARNING] : Interrogation des registres [0x1034 - 0x1034] NOK, il reste [0 essai]
[2025-01-17 10:45:09][DEBUG] : Interrogation de [0x1040 - 0x105a]...
[2025-01-17 10:45:09][DEBUG] : Auto-Reconnect enabled. Trying to establish a new connection
Exception in thread Thread-10 (_data_receiver):
[2025-01-17 10:45:09][INFO] : Connexion au data logger 192.168.1.193:8899
Traceback (most recent call last):
File "/opt/pyenv/versions/3.11.11/lib/python3.11/threading.py", line 1045, in _bootstrap_inner
self.run()
File "/opt/pyenv/versions/3.11.11/lib/python3.11/threading.py", line 982, in run
[2025-01-17 10:45:09][DEBUG] : Socket setup completed... <socket.socket fd=3, family=2, type=1, proto=6, laddr=('192.168.1.153', 45512), raddr=('192.168.1.193', 8899)>
[2025-01-17 10:45:09][DEBUG] : [POLL] Socket closed. Reader thread exiting.
self._target(*self._args, **self._kwargs)
File "/var/www/html/plugins/solarman/resources/pySolarman.py", line 310, in _data_receiver
[2025-01-17 10:45:09][DEBUG] : SENT:
[2025-01-17 10:45:09][DEBUG] : Auto-Reconnect enabled. Trying to establish a new connection
[2025-01-17 10:45:09][WARNING] : Interrogation des registres [0x1040 - 0x105a] NOK avec l'exception [OSError: [Errno 9] Bad file descriptor]
self._reconnect()
File "/var/www/html/plugins/solarman/resources/pySolarman.py", line 336, in _reconnect
[2025-01-17 10:45:09][INFO] : Deconnexion du logger 'LSW3' 192.168.1.193:8899
self._poll.unregister(self._sock_fd)
File "/opt/pyenv/versions/3.11.11/lib/python3.11/selectors.py", line 366, in unregister
key = super().unregister(fileobj)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/pyenv/versions/3.11.11/lib/python3.11/selectors.py", line 251, in unregister
[2025-01-17 10:45:09][DEBUG] : Auto-Reconnect successful.
raise KeyError("{!r} is not registered".format(fileobj)) from None
[2025-01-17 10:45:09][DEBUG] : [POLL] Socket closed. Reader thread exiting.
KeyError: '3 is not registered'
[2025-01-17 10:45:09][WARNING] : Interrogation des registres [0x1040 - 0x105a] NOK, il reste [1 essai]
[2025-01-17 10:45:09][INFO] : Connexion au data logger 192.168.1.193:8899
[2025-01-17 10:45:09][DEBUG] : Auto-Reconnect enabled. Trying to establish a new connection
Exception in thread Thread-12 (_data_receiver):
Traceback (most recent call last):
File "/opt/pyenv/versions/3.11.11/lib/python3.11/threading.py", line 1045, in _bootstrap_inner
self.run()
File "/opt/pyenv/versions/3.11.11/lib/python3.11/threading.py", line 982, in run
[2025-01-17 10:45:09][DEBUG] : Socket setup completed... <socket.socket fd=3, family=2, type=1, proto=6, laddr=('192.168.1.153', 45530), raddr=('192.168.1.193', 8899)>
[2025-01-17 10:45:09][DEBUG] : [POLL] Socket closed. Reader thread exiting.
self._target(*self._args, **self._kwargs)
File "/var/www/html/plugins/solarman/resources/pySolarman.py", line 310, in _data_receiver
[2025-01-17 10:45:09][DEBUG] : SENT:
[2025-01-17 10:45:09][DEBUG] : Auto-Reconnect enabled. Trying to establish a new connection
self._reconnect()
[2025-01-17 10:45:09][WARNING] : Interrogation des registres [0x1040 - 0x105a] NOK avec l'exception [OSError: [Errno 9] Bad file descriptor]
File "/var/www/html/plugins/solarman/resources/pySolarman.py", line 336, in _reconnect
[2025-01-17 10:45:09][INFO] : Deconnexion du logger 'LSW3' 192.168.1.193:8899
self._poll.unregister(self._sock_fd)
File "/opt/pyenv/versions/3.11.11/lib/python3.11/selectors.py", line 366, in unregister
[2025-01-17 10:45:09][DEBUG] : Auto-Reconnect successful.
[2025-01-17 10:45:09][DEBUG] : [POLL] Socket closed. Reader thread exiting.
key = super().unregister(fileobj)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
[2025-01-17 10:45:09][WARNING] : Interrogation des registres [0x1040 - 0x105a] NOK, il reste [0 essai]
File "/opt/pyenv/versions/3.11.11/lib/python3.11/selectors.py", line 251, in unregister
[2025-01-17 10:45:09][DEBUG] : Auto-Reconnect enabled. Trying to establish a new connection
raise KeyError("{!r} is not registered".format(fileobj)) from None
KeyError: '3 is not registered'
Exception in thread Thread-14 (_data_receiver):
[2025-01-17 10:45:09][DEBUG] : Interrogations OK, mise a jour des donnees.
Traceback (most recent call last):
[2025-01-17 10:45:09][DEBUG] : Resultat :
File "/opt/pyenv/versions/3.11.11/lib/python3.11/threading.py", line 1045, in _bootstrap_inner
[2025-01-17 10:45:09][DEBUG] : {'0x404': 'Raccordé au réseau', '0x418': 26, '0x41a': 11, '0x405': 'Pas d’erreur', '0x406': 'Pas d’erreur', '0x407': 'Pas d’erreur', '0x408': "Pas d'erreur", '0x409': "Pas d'erreur", '0x40a': "Pas d'erreur", '0x40b': "Pas d'erreur", '0x40c': "Pas d'erreur", '0x40d': "Pas d'erreur", '0x40e': "Pas d'erreur", '0x40f': "Pas d'erreur", '0x410': "Pas d'erreur", '0x484': 50, '0x4af': 310, '0x48d': 238.4, '0x48e': 1.5, '0x488': 0, '0x507': 50, '0x50a': 237.4, '0x50b': 0.22, '0x584': 269.7, '0x585': 1.79, '0x586': 450, '0x587': 273, '0x588': 1.79, '0x589': 480, '0x604': 50.5, '0x605': 9.540000000000001, '0x606': 480, '0x607': 5, '0x608': 30, '0x609': 99, '0x60a': 0, '0x685': 0.9400000000000001, '0x687': 3618.7000000000003, '0x689': 8.59, '0x68b': 11440, '0x68d': 8.3, '0x68f': 8151.5, '0x691': 0, '0x693': 8.9, '0x695': 0.55, '0x697': 974.1, '0x699': 0.17, '0x69b': 854.1, 'PID': '1505488'}
[2025-01-17 10:45:09][INFO] : Send to jeedom : {'device': {'145': {'0x404': 'Raccordé au réseau', '0x418': 26, '0x41a': 11, '0x405': 'Pas d’erreur', '0x406': 'Pas d’erreur', '0x407': 'Pas d’erreur', '0x408': "Pas d'erreur", '0x409': "Pas d'erreur", '0x40a': "Pas d'erreur", '0x40b': "Pas d'erreur", '0x40c': "Pas d'erreur", '0x40d': "Pas d'erreur", '0x40e': "Pas d'erreur", '0x40f': "Pas d'erreur", '0x410': "Pas d'erreur", '0x484': 50, '0x4af': 310, '0x48d': 238.4, '0x48e': 1.5, '0x488': 0, '0x507': 50, '0x50a': 237.4, '0x50b': 0.22, '0x584': 269.7, '0x585': 1.79, '0x586': 450, '0x587': 273, '0x588': 1.79, '0x589': 480, '0x604': 50.5, '0x605': 9.540000000000001, '0x606': 480, '0x607': 5, '0x608': 30, '0x609': 99, '0x60a': 0, '0x685': 0.9400000000000001, '0x687': 3618.7000000000003, '0x689': 8.59, '0x68b': 11440, '0x68d': 8.3, '0x68f': 8151.5, '0x691': 0, '0x693': 8.9, '0x695': 0.55, '0x697': 974.1, '0x699': 0.17, '0x69b': 854.1, 'PID': '1505488'}}}
self.run()
File "/opt/pyenv/versions/3.11.11/lib/python3.11/threading.py", line 982, in run
[2025-01-17 10:45:09][DEBUG] : SOLARMAN------ sys.exit() sortie normale
[2025-01-17 10:45:09][DEBUG] : Starting new HTTP connection (1): 127.0.0.1:80
self._target(*self._args, **self._kwargs)
File "/var/www/html/plugins/solarman/resources/pySolarman.py", line 310, in _data_receiver
self._reconnect()
File "/var/www/html/plugins/solarman/resources/pySolarman.py", line 336, in _reconnect
self._poll.unregister(self._sock_fd)
File "/opt/pyenv/versions/3.11.11/lib/python3.11/selectors.py", line 366, in unregister
key = super().unregister(fileobj)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/pyenv/versions/3.11.11/lib/python3.11/selectors.py", line 251, in unregister
raise KeyError("{!r} is not registered".format(fileobj)) from None
KeyError: '3 is not registered'
[2025-01-17 10:45:09][DEBUG] : http://127.0.0.1:80 "POST /plugins/solarman/core/php/jeeSolarman.php?apikey=MMUrIZQORE6STLWMPiAjs9eRh5lxr1zLuTnsxk2y6MWEkvYDkWRvoqGbEzUntrvJ HTTP/11" 200 0