Merci pour ton aide je fais ça demain et je te dis
Alors il y a du beaucoup mieux. J’arrive a commander mes volets via le service mais dès que je mets créer les entité j’ai ce message :

J’ai ça dans les logs :
2023-09-24 10:35:12.083 DEBUG (MainThread) [custom_components.rfplayer] Rfplayer send command for {'command': 'ON', 'automatic_add': True, 'entity_type': 'switch', 'protocol': 'X2DSHUTTER', 'device_address': 'A1'}
2023-09-24 10:35:12.083 DEBUG (MainThread) [custom_components.rfplayer.rflib.rfpprotocol] writing data: b'ZIA++ON A1 X2DSHUTTER \n\r'
2023-09-24 10:35:12.084 DEBUG (MainThread) [custom_components.rfplayer] Add device for {'command': 'ON', 'automatic_add': True, 'entity_type': 'switch', 'protocol': 'X2DSHUTTER', 'device_address': 'A1'}
2023-09-24 10:35:12.086 ERROR (MainThread) [homeassistant.helpers.script.websocket_api_script] websocket_api script: Error executing script. Unexpected error for call_service at pos 1: 'dict' object is not callable
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 468, in _async_step
await getattr(self, handler)()
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 704, in _async_call_service_step
response_data = await self._async_run_long_action(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 666, in _async_run_long_action
return long_task.result()
^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 1969, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2006, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/rfplayer/__init__.py", line 136, in async_send_command
await hass.data[DOMAIN][DATA_DEVICE_REGISTER][EVENT_KEY_COMMAND](device)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'dict' object is not callable
2023-09-24 10:35:12.100 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [546643846464] Error handling message: Unknown error (unknown_error) Mickaël from 127.0.0.1 (Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 26, in _handle_async_response
await func(hass, connection, msg)
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 740, in handle_execute_script
script_result = await script_obj.async_run(msg.get("variables"), context=context)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1579, in async_run
return await asyncio.shield(run.async_run())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 420, in async_run
await self._async_step(log_exceptions=False)
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 470, in _async_step
self._handle_exception(
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 493, in _handle_exception
raise exception
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 468, in _async_step
await getattr(self, handler)()
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 704, in _async_call_service_step
response_data = await self._async_run_long_action(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 666, in _async_run_long_action
return long_task.result()
^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 1969, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2006, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/rfplayer/__init__.py", line 136, in async_send_command
await hass.data[DOMAIN][DATA_DEVICE_REGISTER][EVENT_KEY_COMMAND](device)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'dict' object is not callable
Slt…
Et si tu choisis Cover pour Entity type, cela serait surement mieux ?
J’ai essayé aussi et idem
Il ne faut pas oublier de redémarré HA, le mieux redémarré complétement le RPI4 …
Yep après redémarrage c’est ok.
@Doubledom
C’est quoi le problème ? Et tu sais comment résoudre ? j’ai essayer de faire un FACTORYRESET mais rien…
2023-10-03 13:40:00.075 WARNING (MainThread) [custom_components.rfplayer.rflib.rfpprotocol] Error during decode of data, invalid data: �d
2023-10-03 13:40:34.115 WARNING (MainThread) [custom_components.rfplayer.rflib.rfpprotocol] Error during decode of data, invalid data: �E�pT
J’ai que des lignes comme ça et mon RFPLAYER ne fait plus rien…
Il va falloir plus d’infos ? Il a fonctionné ? Dans la partie dev/service ça ne fonctionne pas non plus ? Le port usb a pas changé ?
Hello c’est bon en fait.
FACTORYRESET + deplug / replug c’est OK
Merci
Par contre niveau sonde Oregon, j’ai une RTHN318 qui fonctionne parfaitement bien avec RFXCOM mais avec le RFPLAYER il semble que les infos soient mal comprises ou autre mais elle ne s’ajoute pas au plugin? auriez vous une idée ?
2023-10-03 14:21:19.087 DEBUG (MainThread) [custom_components.rfplayer.rflib.rfpprotocol] received data: ZIA33{ "frame" :{"header": {"frameType": "0", "cluster": "0", "dataFlag": "0", "rfLevel": "-90", "floorNoise": "-93", "rfQuality": "2", "protocol": "5", "protocolMeaning": "OREGON", "infoType": "4", "frequency": "433420"},"infos": {"subType": "0", "id_PHY": "0x0000", "id_PHYMeaning": "ProbeV1", "adr_channel": "0", "adr": "0", "channel": "0", "qualifier": "32", "lowBatt": "0", "measures" : [{"type" : "temperature", "value" : "-0.0", "unit" : "Celsius"}, {"type" : "hygrometry", "value" : "data: 0", "unit" : "%"}]}}}
2023-10-03 14:21:32.275 DEBUG (MainThread) [custom_components.rfplayer.rflib.rfpprotocol] received data: ZIA33{ "frame" :{"header": {"frameType": "0", "cluster": "0", "dataFlag": "0", "rfLevel": "-90", "floorNoise": "-95", "rfQuality": "2", "protocol": "5", "protocolMeaning": "OREGON", "infoType": "4", "frequency": "433420"},"infos": {"subType": "0", "id_PHY": "0x0000", "id_PHYMeaning": "ProbeV1", "adr_channel": "0", "adr": "0", "channel": "0", "qualifier": "32", "lowBatt": "0", "measures" : [{"type" : "temperature", "value" : "-0.0", "unit" : "Celsius"}, {"type" : "hygrometry", "value" : "data: 0", "unit" : "%"}]}}}
2023-10-03 14:21:56.375 DEBUG (MainThread) [custom_components.rfplayer] Rfplayer send command for {'command': 'STATUS', 'automatic_add': False, 'entity_type': 'switch', 'protocol': ' '}
Salut…
Tu peux montrer plus de log pour cette sonde, car là je vois des valeurs nulles ?
Ca repète en boucle ça :
2023-10-03 14:50:01.025 DEBUG (MainThread) [custom_components.rfplayer.rflib.rfpprotocol] received data: "cluster": "0", "dataFlag": "0", "rfLevel": "-94", "floorNoise": "-97", "rfQuality": "2", "protocol": "5", "protocolMeaning": "OREGON", "infoType": "4", "frequency": "433420"},"infos": {"subType": "0", "id_PHY": "0x0000", "id_PHYMeaning": "ProbeV1", "adr_channel": "0", "adr": "0", "channel": "0", "qualifier": "32", "lowBatt": "0", "measures" : [{"type" : "temperature", "value" : "-0.0", "unit" : "Celsius"}, {"type" : "hygrometry", "value" : "0", "unit" : "%"}]}}}
2023-10-03 14:50:09.607 DEBUG (MainThread) [custom_components.rfplayer.rflib.rfpprotocol] received data: ZIA33{ "frame" :{"header": {"frameType": "0", "cluster": "0", "dataFlag": "0", "rfLevel": "-97", "floorNoise": "-97", "rfQuality": "2", "protocol": "5", "protocolMeaning": "OREGON", "infoType": "4", "frequency": "433420"},"infos": {"subType": "0", "id_PHY": "0x0000", "id_PHYMeaning": "ProbeV1", "adr_channel": "0", "adr": "0", "channel": "0", "qualifier": "32", "lowBatt": "0", "measures" : [{"type" : "temperature", "value" : "-0.0", "unit" : "Celsius"}, {"type" : "hygrometry", "value" : "
2023-10-03 14:50:09.623 DEBUG (MainThread) [custom_components.rfplayer.rflib.rfpprotocol] received data: 0", "unit" : "%"}]}}}
2023-10-03 14:50:14.227 DEBUG (MainThread) [custom_components.rfplayer.rflib.rfpprotocol] received data: ZIA33{ "frame" :{"header": {"frameType": "0", "cluster": "0", "dataFlag": "0", "rfLevel": "-97", "floorNoise": "-98", "rfQuality": "2", "protocol": "5", "protocolMeaning": "OREGON", "infoType": "4", "frequency": "433420"},"infos": {"subType": "0", "id_PHY": "0x0000", "id_PHYMeaning": "ProbeV1", "adr_channel": "0", "adr": "0", "channel": "0", "qualifier": "32", "lowBatt": "0", "measures" : [{"type" : "temperature", "value" : "-0.0", "unit" : "Celsius"}, {"type" : "hygrometry", "value" : "
2023-10-03 14:50:14.242 DEBUG (MainThread) [custom_components.rfplayer.rflib.rfpprotocol] received data: 0", "unit" : "%"}]}}}
2023-10-03 14:50:46.297 DEBUG (MainThread) [custom_components.rfplayer.rflib.rfpprotocol] received data: ZIA33{ "frame" :{"header": {"frameType": "0
2023-10-03 14:50:46.351 DEBUG (MainThread) [custom_components.rfplayer.rflib.rfpprotocol] received data: ", "cluster": "0", "dataFlag": "0", "rfLevel": "-92", "floorNoise": "-98", "rfQuality": "2", "protocol": "5", "protocolMeaning": "OREGON", "infoType": "4", "frequency": "433420"},"infos": {"subType": "0", "id_PHY": "0x0000", "id_PHYMeaning": "ProbeV1", "adr_channel": "0", "adr": "0", "channel": "0", "qualifier": "32", "lowBatt": "0", "measures" : [{"type" : "temperature", "value" : "-0.0", "unit" : "Celsius"}, {"type" : "hygrometry", "value" : "0", "unit" : "%"}]}}}
OUI
Je vois des valeurs nulles , c’est quoi exactement comme type de sonde ?
C’est une RTHN318
La sonde fonctionnement correctement sur le RFXCOM j’ai les valeurs qui se mettent à jour.
Bug du RFPLAYER qui decode mal ces trames là ?
est-ce que tu peux montrer log lors du redémarrage de HA ?
ou faire une demande de status en mode développement
Rfplayer send command for {'command': 'STATUS', 'protocol': ' ', 'automatic_add': False}
Faisable en mode Yaml ( j’ai pas implémenté dans choix)
service: rfplayer.send_command
data:
command: STATUS
protocol: " "
devrait répondre du type :
systemStatus request number=0
Version: 1.39, Jamming: 7, Time: 534658s, Mac: 0xF2FC7AF4, LBT: 16dBm, Factory: 1464773430, ClusterID: 0, RTdenials: 0, SigfoxID: 0, SigfoxPAC: -, 2.4Ghz: 0, MaskT: 0xFFFFFFFF, MaskA: 0xFFFFFFFF,
transmitter available: VISONIC433 VISONIC868 CHACON DOMIA X10 X2D433 X2D868 X2DSHUTTER X2DELEC X2DGAS RTS BLYSS PARROT KD101 FS20 EDISIO
receiver available: X10 RTS VISONIC BLYSS CHACON OREGONV1 OREGONV2 OREGONV3/OWL DOMIA X2D KD101 PARROT TIC FS20 JAMMING EDISIO
2023-10-03 14:11:59.484 DEBUG (MainThread) [custom_components.rfplayer.rflib.rfpprotocol] received data: receiver enabled: X10 RTS VISONIC BLYSS CHACON OREGONV1 OREGONV2 OREGONV3/OWL DOMIA X2D KD101 PARROT TIC FS20 JAMMING EDISIO
repeater available: X10 RTS VISONIC BLYSS CHACON OREGONV1 OREGONV2 OREGONV3/OWL DOMIA X2D KD101 PARROT TIC FS20 EDISIO
repeater enabled: X10 RTS VISONIC BLYSS CHACON OREGONV1 OREGONV2 OREGONV3/OWL DOMIA X2D KD101 PARROT TIC FS20 EDISIO
2023-10-03 14:11:59.678 DEBUG (MainThread) [custom_components.rfplayer.rflib.rfpprotocol] received data: ZIA--
radioStatus request number=0
Frequency: 433920Khz Most 433Mhz devices,
Selectivity: 0 Default value, FloorNoise: -104dBm Very small noise, DspTrigger: 8dBm, RFlink: 0 Disabled, RFlinkTrigger: 16dBm, sentFrames: 4147, discFrames: 0, dutyCycle: 360000ms/h by ETSI, remainDC: 360000ms,
Frequency: 868350Khz Deltadore X2D/FS20/Edisio,
Selectivity: 0 Default value, FloorNoise: -106dBm Very small noise, DspTrigger: 8dBm, RFlink: 0 Disabled, RFlinkTrigger: 16dBm, sentFrames: 192, discFrames: 0, dutyCycle: 36000ms/h by ETSI, remainDC: 36000ms,
Voilà :
Rfplayer send command for {'command': 'STATUS', 'automatic_add': False, 'protocol': ' '}
2023-10-03 15:16:30.779 DEBUG (MainThread) [custom_components.rfplayer.rflib.rfpprotocol] writing data: b'ZIA++STATUS \n\r'
2023-10-03 15:16:30.860 DEBUG (MainThread) [custom_components.rfplayer.rflib.rfpprotocol] received data: ZIA--
systemStatus request number=0
Version: 1.39, Jamming: 6, Time: 11413s, Mac: 0xFCDEAD2A, LBT: 16dBm, Factory: 1500282088, ClusterID: 0, RTdenials: 0, SigfoxID: 0, SigfoxPAC: -, 2.4Ghz: 0, MaskT: 0xFFFFFFFF, MaskA: 0xFFFFFFFF,
transmitter available: VISONIC433 VISONIC868 CHACON DOMIA X10 X2D433 X2D868 X2DSHUTTER X2DELEC X2DGAS RTS BLYSS PARROT KD101 FS20 EDISIO
receiver available: X10 RTS VISONIC BLYSS CHACON OREGONV1 OREGONV2 OREGONV3/OWL DOMIA X2D KD101 PARROT TIC FS20 JAMMING EDISIO
2023-10-03 15:16:30.899 DEBUG (MainThread) [custom_components.rfplayer.rflib.rfpprotocol] received data: receiver enabled: X10 RTS VISONIC BLYSS CHACON OREGONV1 OREGONV2 OREGONV3/OWL DOMIA X2D KD101 PARROT TIC FS20 JAMMING EDISIO
repeater available: X10 RTS VISONIC BLYSS CHACON OREGONV1 OREGONV2 OREGONV3/OWL DOMIA X2D KD101 PARROT TIC FS20 EDISIO
repeater enabled:
2023-10-03 15:16:31.091 DEBUG (MainThread) [custom_components.rfplayer.rflib.rfpprotocol] received data: ZIA--
radioStatus request number=0
Frequency: 433420Khz Somfy RTS,
Selectivity: 0 Default value, FloorNoise: -95dBm almost noisy, DspTrigger: 4dBm, RFlink: 0 Disabled, RFlinkTrigger: 16dBm,
Frequency: 868350Khz Deltadore X2D/FS20/Edisio,
Selectivity: 0 Default value, FloorNoise: -97dBm A bit noisy, DspTrigger: 8dBm, RFlink: 0 Disabled, RFlinkTrigger: 16dBm, sentFrames: 0, discFrames: 0, dutyCycle: 36000ms/h by ETSI, remainDC: 36000ms,
Version 1.0.2 de ton intégration
la mise à jour sur quoi
422ccb8
voir dans HACS sur Rfplayer

Est-ce que tu as réglage dans le /config/configuration.yaml du type logger pour le Rfplayer !
logger:
default: warning
logs:
custom_components.rfplayer: debug
Oui bien c’est celle là
Ok…
Ce qui m’interpelle c’est le message du id_PHYMeaning !

