Intégration GCE RFplayer

Est-ce que sur le mode développement tu vois le Rfplayer dans les services !

Oui, j’ai bien ces 3 services, avec le paramètre Entity Type en plus par rapport à avant

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

Tu as forcé le rechargement de la configuration du yaml !

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 </>
image

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 ?

regarde si tu as dans la partie PARAMETRES


Appareils
image

oui j’ai et j’ai pu ajouter mon appareil, avec des entités ajoutées automatiquement

L’appel du service est vert aussi, avec le RFPlayer qui clignote en rouge

On essai un test de com avec le Rfplayer en mode sortant en envoyant le Hello dans mode développement avec le protocole " "
En mode UI donne

service: rfplayer.send_command
data:
  command: HELLO
  automatic_add: false
  entity_type: switch
  protocol: " "

Quand appel service dois pas faire erreur !
image

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 !