Est-ce que sur le mode développement tu vois le Rfplayer dans les services !
As-tu les logs du Rfplayer d’activés dans le configuration Yaml ?
logger:
default: warning
logs:
custom_components.rfplayer: debug
Non, mais c’est ajouté maintenant
oui, et redemarré aussi
regarde dans les logs de /homeassistant/home-assistant.log si tu vois l’initialisation du Rfplayer !
2024-02-04 15:48:04.141 DEBUG (MainThread) [custom_components.rfplayer.rflib.rfpprotocol] writing data: b'ZIA++HELLO\n\r'
2024-02-04 15:48:04.141 DEBUG (MainThread) [custom_components.rfplayer.rflib.rfpprotocol] writing data: b'ZIA++1 FORMAT JSON . RECEIVER + *. SENSITIVITY L 0. SENSITIVITY H 0. SELECTIVITY L 0. SELECTIVITY H 0. RFLINK 1. RFLINKTRIGGER L 0. RFLINKTRIGGER H 0. LBT 16. STATUS\n\r'
2024-02-04 15:48:04.215 DEBUG (MainThread) [custom_components.localtuya.discovery]
2024-02-04 15:48:04.807 DEBUG (MainThread) [custom_components.rfplayer.rflib.rfpprotocol] received data:
ca ne part pas bien, je ne retrouve pas ces lignes.
Ce qui me semble le plus utile est ça :
2024-02-04 17:18:16.137 ERROR (MainThread) [homeassistant.helpers.integration_platform] Unexpected error importing rfplayer/logbook.py
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/integration_platform.py", line 50, in _async_process_single_integration_platform_component
platform = integration.get_platform(platform_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 833, in get_platform
cache[full_name] = self._import_platform(platform_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 850, in _import_platform
return importlib.import_module(f"{self.pkg_path}.{platform_name}")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
File "<frozen importlib._bootstrap>", line 1140, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'custom_components.rfplayer_new.logbook'
2024-02-04 17:18:16.161 ERROR (MainThread) [homeassistant.helpers.integration_platform] Unexpected error importing rfplayer/system_health.py
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/integration_platform.py", line 50, in _async_process_single_integration_platform_component
platform = integration.get_platform(platform_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 833, in get_platform
cache[full_name] = self._import_platform(platform_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 850, in _import_platform
return importlib.import_module(f"{self.pkg_path}.{platform_name}")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
File "<frozen importlib._bootstrap>", line 1140, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'custom_components.rfplayer_new.system_health'
OUPS et le formatage du texte dans le Forum
Insertion dans les balises du menu </>

2024-02-04 17:18:16.137 ERROR (MainThread) [homeassistant.helpers.integration_platform] Unexpected error importing rfplayer/logbook.py
Traceback (most recent call last):
File « /usr/src/homeassistant/homeassistant/helpers/integration_platform.py », line 50, in _async_process_single_integration_platform_component
platform = integration.get_platform(platform_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File « /usr/src/homeassistant/homeassistant/loader.py », line 833, in get_platform
cache[full_name] = self._import_platform(platform_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File « /usr/src/homeassistant/homeassistant/loader.py », line 850, in _import_platform
return importlib.import_module(f"{self.pkg_path}.{platform_name}« )
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File « /usr/local/lib/python3.11/importlib/init.py », line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File « », line 1204, in _gcd_import
File « », line 1176, in _find_and_load
File « », line 1140, in _find_and_load_unlocked
ModuleNotFoundError: No module named ‹ custom_components.rfplayer_new.logbook ›
2024-02-04 17:18:16.161 ERROR (MainThread) [homeassistant.helpers.integration_platform] Unexpected error importing rfplayer/system_health.py
Traceback (most recent call last):
File « /usr/src/homeassistant/homeassistant/helpers/integration_platform.py », line 50, in _async_process_single_integration_platform_component
platform = integration.get_platform(platform_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File « /usr/src/homeassistant/homeassistant/loader.py », line 833, in get_platform
cache[full_name] = self._import_platform(platform_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File « /usr/src/homeassistant/homeassistant/loader.py », line 850, in _import_platform
return importlib.import_module(f »{self.pkg_path}.{platform_name}")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File « /usr/local/lib/python3.11/importlib/init.py », line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File « », line 1204, in _gcd_import
File « », line 1176, in _find_and_load
File « », line 1140, in _find_and_load_unlocked
ModuleNotFoundError: No module named ‹ custom_components.rfplayer_new.system_health ›
Donc pas initialisé !
j’ai corrigé la mise en forme
Pour info, je n’ai pas fait l’installation par le store mais en copiant directement les fichiers (installation HA par docker)
L’initialisation nécessite une action à quel endroit ?
C’est fait, le bouton passe au vert (et le RFPlayer ne clignote pas au rouge, contrairement à la commande ON)
Ok le log donne quoi !
2024-02-04 16:34:54.217 DEBUG (MainThread) [custom_components.rfplayer.rflib.rfpprotocol] writing data: b'ZIA++HELLO \n\r'
2024-02-04 16:34:54.243 DEBUG (MainThread) [custom_components.rfplayer.rflib.rfpprotocol] received data: ZIA--Welcome to Ziblue Dongle RFPLAYER (RFP1000, Firmware=V1.39 F=433Mhz & 868Mhz EU)!
Test sur commande PING doit répondre PONG
2024-02-04 16:36:12.258 DEBUG (MainThread) [custom_components.rfplayer] Rfplayer send command for {'command': 'PING', 'automatic_add': False, 'entity_type': 'switch', 'protocol': ' '}
2024-02-04 16:36:12.258 DEBUG (MainThread) [custom_components.rfplayer.rflib.rfpprotocol] writing data: b'ZIA++PING \n\r'
2024-02-04 16:36:12.275 DEBUG (MainThread) [custom_components.rfplayer.rflib.rfpprotocol] received data: ZIA--PONG
Ca donne rien dans home-assistant.log ! Je regarde un peu plus
La réponse est dans les logs ?
Oui si tu as initialisé comme plus haut !
c’est bon non ?
2024-02-04 17:52:21.738 DEBUG (MainThread) [custom_components.rfplayer.rflib.rfpprotocol] received data: ZIA--PONG
On passe en MP , répond au message Direct !







