gce-electronics / HA_RFPlayer

RFPlayer plugin for Home assistant
Apache License 2.0
29 stars 9 forks source link

String values cause error #70

Open max5962 opened 4 weeks ago

max5962 commented 4 weeks ago

System Health details

OS Version: Home Assistant OS 12.4 Home Assistant Core: 2024.8.0 latest HA_FRPLAYER version

Checklist

Describe the issue

Hello,

Configuring rfplayer make my home assistant loop reboot.

I don't know the root cause but i have a lot of error like this :

``

Reproduction steps

  1. boot home assistant with GCE configured
  2. boot loop
  3. ...

Debug logs

2024-08-14 15:20:25.629 ERROR (MainThread) [homeassistant.components.sensor] Error adding entity sensor.x2d_3612038144 for domain sensor with platform rfplayer
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 598, in _async_add_entities
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 912, in _async_add_entity
    await entity.add_to_platform_finish()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1365, in add_to_platform_finish
    await self.async_added_to_hass()
  File "/config/custom_components/rfplayer/sensor.py", line 84, in async_added_to_hass
    await super().async_added_to_hass()
  File "/config/custom_components/rfplayer/__init__.py", line 377, in async_added_to_hass
    self.handle_event_callback(self._initial_event)
  File "/config/custom_components/rfplayer/__init__.py", line 330, in handle_event_callback
    self._handle_event(event)
  File "/config/custom_components/rfplayer/sensor.py", line 93, in _handle_event
    self._attr_native_value = float(event["value"])
                              ^^^^^^^^^^^^^^^^^^^^^
ValueError: could not convert string to float: 'Remote Control'
2024-08-14 15:20:25.633 ERROR (MainThread) [homeassistant.components.sensor] Error adding entity sensor.x2d_2919891712 for domain sensor with platform rfplayer
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 598, in _async_add_entities
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 912, in _async_add_entity
    await entity.add_to_platform_finish()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1365, in add_to_platform_finish
    await self.async_added_to_hass()
  File "/config/custom_components/rfplayer/sensor.py", line 84, in async_added_to_hass
    await super().async_added_to_hass()
  File "/config/custom_components/rfplayer/__init__.py", line 377, in async_added_to_hass
    self.handle_event_callback(self._initial_event)
  File "/config/custom_components/rfplayer/__init__.py", line 330, in handle_event_callback
    self._handle_event(event)
  File "/config/custom_components/rfplayer/sensor.py", line 93, in _handle_event
    self._attr_native_value = float(event["value"])
                              ^^^^^^^^^^^^^^^^^^^^^
ValueError: could not convert string to float: 'alive'
2024-08-14 15:20:25.670 ERROR (MainThread) [homeassistant.components.sensor] Error adding entity sensor.x2d_2380275968 for domain sensor with platform rfplayer
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 598, in _async_add_entities
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 912, in _async_add_entity
    await entity.add_to_platform_finish()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1365, in add_to_platform_finish
    await self.async_added_to_hass()
  File "/config/custom_components/rfplayer/sensor.py", line 84, in async_added_to_hass
    await super().async_added_to_hass()
  File "/config/custom_components/rfplayer/__init__.py", line 377, in async_added_to_hass
    self.handle_event_callback(self._initial_event)
  File "/config/custom_components/rfplayer/__init__.py", line 330, in handle_event_callback
    self._handle_event(event)
  File "/config/custom_components/rfplayer/sensor.py", line 93, in _handle_event
    self._attr_native_value = float(event["value"])
                              ^^^^^^^^^^^^^^^^^^^^^
ValueError: could not convert string to float: 'closed'

[...]

2024-08-14 15:32:51.875 DEBUG (MainThread) [custom_components.rfplayer.sensor] Add sensor entity X2D_4269482240_cmd
2024-08-14 15:32:51.875 ERROR (MainThread) [homeassistant.components.sensor] Error adding entity sensor.x2d_4269482240 for domain sensor with platform rfplayer
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 598, in _async_add_entities
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 912, in _async_add_entity
    await entity.add_to_platform_finish()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1365, in add_to_platform_finish
    await self.async_added_to_hass()
  File "/config/custom_components/rfplayer/sensor.py", line 84, in async_added_to_hass
    await super().async_added_to_hass()
  File "/config/custom_components/rfplayer/__init__.py", line 377, in async_added_to_hass
    self.handle_event_callback(self._initial_event)
  File "/config/custom_components/rfplayer/__init__.py", line 330, in handle_event_callback
    self._handle_event(event)
  File "/config/custom_components/rfplayer/sensor.py", line 93, in _handle_event
    self._attr_native_value = float(event["value"])
                              ^^^^^^^^^^^^^^^^^^^^^
ValueError: could not convert string to float: 'open'
2024-08-14 15:32:51.881 DEBUG (MainThread) [custom_components.rfplayer.sensor] Add sensor entity X2D_4269482240_cmd
2024-08-14 15:32:51.881 ERROR (MainThread) [homeassistant.components.sensor] Platform rfplayer does not generate unique IDs. ID x2d_4269482240 already exists - ignoring sensor.x2d_4269482240

===================== LOOP 8817 times ====================

2024-08-14 15:32:51.908 DEBUG (MainThread) [custom_components.rfplayer.rflib.rfpprotocol] connected
2024-08-14 15:32:51.909 DEBUG (MainThread) [custom_components.rfplayer.rflib.rfpprotocol] writing data: b'ZIA++HELLO\n\r'
2024-08-14 15:32:51.909 DEBUG (MainThread) [custom_components.rfplayer.rflib.rfpprotocol] writing data: b'ZIA++RECEIVER + *\n\r'
2024-08-14 15:32:51.910 DEBUG (MainThread) [custom_components.rfplayer.rflib.rfpprotocol] writing data: b'ZIA++FORMAT JSON\n\r'
2024-08-14 15:32:51.910 DEBUG (MainThread) [custom_components.rfplayer.rflib.rfpprotocol] initialized
2024-08-14 15:32:51.910 DEBUG (MainThread) [custom_components.rfplayer.rflib.rfpprotocol] connected

==== =========================================
 (  unplug the rfplayer ) 

NoneType: None
2024-08-14 15:32:53.525 ERROR (MainThread) [custom_components.rfplayer] device reports readiness to read but returned no data (device disconnected or multiple access on port?)
2024-08-14 15:32:53.527 WARNING (MainThread) [custom_components.rfplayer] Disconnected from Rfplayer, reconnecting
2024-08-14 15:32:53.527 INFO (MainThread) [custom_components.rfplayer] Initiating Rfplayer connection
2024-08-14 15:32:53.528 ERROR (MainThread) [custom_components.rfplayer] Error connecting to Rfplayer, reconnecting in 10
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/serial/serialposix.py", line 322, in open
    self.fd = os.open(self.portstr, os.O_RDWR | os.O_NOCTTY | os.O_NONBLOCK)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/dev/serial/by-id/usb-Ziblue_RFPLAYER_A1236L4G-if00-port0'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/config/custom_components/rfplayer/__init__.py", line 211, in connect
    transport, protocol = await connection
                          ^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/serial_asyncio/__init__.py", line 448, in create_serial_connection
    serial_instance = serial.serial_for_url(*args, **kwargs)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/serial/__init__.py", line 90, in serial_for_url
    instance.open()
  File "/usr/local/lib/python3.12/site-packages/serial/serialposix.py", line 325, in open
    raise SerialException(msg.errno, "could not open port {}: {}".format(self._port, msg))

Diagnostics dump

No response

Aohzan commented 4 weeks ago

you have a device that send : closed, alive and Remote Control, but we handle only number, I will fix it

max5962 commented 4 weeks ago

i'm using an DeltaDore Alarm. Maybe the reason :) Thanks a lot !

Aohzan commented 4 weeks ago

can you test with branch sensor_handle_str_value please

max5962 commented 4 weeks ago

How to test specific branch ? did you generate a beta build ? i updated all file and remove pycache. Test in progress

max5962 commented 4 weeks ago

I don't know if it's related but :

"

2024-08-14 16:21:30.608 ERROR (MainThread) [homeassistant.components.sensor] Error adding entity sensor.x2d_3612038144 for domain sensor with platform rfplayer
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 598, in _async_add_entities
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 912, in _async_add_entity
    await entity.add_to_platform_finish()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1365, in add_to_platform_finish
    await self.async_added_to_hass()
  File "/config/custom_components/rfplayer/sensor.py", line 84, in async_added_to_hass
    # Register id and aliases
  File "/config/custom_components/rfplayer/__init__.py", line 377, in async_added_to_hass
    self.handle_event_callback(self._initial_event)
  File "/config/custom_components/rfplayer/__init__.py", line 330, in handle_event_callback
    self._handle_event(event)
  File "/config/custom_components/rfplayer/sensor.py", line 93, in _handle_event
    """Domain specific event handler."""

[....]

ValueError: Sensor sensor.depedencies_download has device class 'None', state class 'None' unit 'days' and suggested precision 'None' thus indicating it has a numeric value; however, it has the non-numeric value: '' (<class 'str'>)
2024-08-14 16:31:20.045 ERROR (MainThread) [homeassistant.core] Error running job: <Job onetime listen homeassistant_start <function _async_at_core_state.<locals>._matched_event at 0x7ff90ef0b600> HassJobType.Callback <_OneTimeListener>
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 657, in state
    numerical_value = int(value)
                      ^^^^^^^^^^
ValueError: invalid literal for int() with base 10: ''

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 660, in state
    numerical_value = float(value)
                      ^^^^^^^^^^^^
ValueError: could not convert string to float: ''"

I had to reboot my VM and the log is flush ...

Aohzan commented 3 weeks ago

did you replace something by [....] ? if yes paste everything please

max5962 commented 3 weeks ago

The integration seems to boot loop.

  1. remove the component
  2. unplug the rfplayer
  3. reboot => OK
  4. plug the rflplayer
  5. add the component
  6. activate debug log

home-assistant.log

Aohzan commented 3 weeks ago

I pushed a new commit, try it please

max5962 commented 3 weeks ago

startup :

(result of the command grep "rfplayer in my log" ) :

Line 871: 2024-08-16 23:48:24.993 DEBUG (MainThread) [homeassistant.helpers.translation] Cache miss for en: {'openai_conversation', 'button', 'vacuum', 'script', 'google_home', 'google_assistant', 'cast', 'remote', 'repairs', 'hue', 'command_line', 'sonoff', 'scene', 'rfplayer', 'watchman', 'weather', 'utility_meter', 'number', 'ui_lovelace_minimalist', 'automation', 'timer', 'schedule', 'input_select', 'camera', 'media_player', 'thermal_comfort', 'auto_backup', 'group', 'notify', 'conversation', 'shell_command', 'cover', 'light', 'ble_monitor', 'template', 'input_datetime', 'device_tracker', 'siren', 'input_boolean', 'switch', 'time', 'input_number', 'alarm_control_panel', 'counter', 'zha_toolkit', 'universal', 'climate', 'select', 'mqtt', 'fan', 'battery_notes', 'tts', 'logbook', 'spook', 'tapo_control', 'synology_dsm', 'input_button', 'samsungtv_smart', 'input_text', 'zone', 'blueprint'}
    Line 873: 2024-08-16 23:48:25.006 DEBUG (MainThread) [custom_components.rfplayer.rflib.rfpprotocol] received data: ZIA33{ "frame" :{"header": {"frameType": "0", "cluster": "0", "dataFlag": "1", "rfLevel": "-65", "floorNoise": "-104", "rfQuality": "9", "protocol": "8", "protocolMeaning": "X2D", "infoType": "11", "frequency": "868350"},"infos": {"subType": "0", "subTypeMeaning": "Detector/Sensor", "id": "2919891712", "qualifier": "8", "qualifierMeaning": { "flags": ["Supervisor/Alive"]}}}}
    Line 874: 2024-08-16 23:48:25.006 DEBUG (MainThread) [custom_components.rfplayer.rflib.rfpprotocol] decoded packet: {'node': 'GATEWAY', 'protocol': 'X2D', 'id': '2919891712', 'command': 'alive', 'state': 'alive'}
    Line 875: 2024-08-16 23:48:25.006 DEBUG (MainThread) [custom_components.rfplayer.rflib.rfpparser] f:node,v:GATEWAY
    Line 876: 2024-08-16 23:48:25.006 DEBUG (MainThread) [custom_components.rfplayer.rflib.rfpparser] f:protocol,v:X2D
    Line 877: 2024-08-16 23:48:25.006 DEBUG (MainThread) [custom_components.rfplayer.rflib.rfpparser] f:id,v:2919891712
    Line 878: 2024-08-16 23:48:25.007 DEBUG (MainThread) [custom_components.rfplayer.rflib.rfpparser] f:command,v:alive
    Line 879: 2024-08-16 23:48:25.007 DEBUG (MainThread) [custom_components.rfplayer.rflib.rfpparser] f:state,v:alive
    Line 880: 2024-08-16 23:48:25.007 DEBUG (MainThread) [custom_components.rfplayer.rflib.rfpparser] event: command -> alive
    Line 881: 2024-08-16 23:48:25.007 DEBUG (MainThread) [custom_components.rfplayer.rflib.rfpparser] packet_events, sensor:command,value:alive
    Line 882: 2024-08-16 23:48:25.007 DEBUG (MainThread) [custom_components.rfplayer.rflib.rfpprotocol] ignore_event
    Line 883: 2024-08-16 23:48:25.007 DEBUG (MainThread) [custom_components.rfplayer.rflib.rfpprotocol] got event: {'id': 'X2D_2919891712_cmd', 'sensor': 'command', 'value': 'alive', 'unit': None}
    Line 884: 2024-08-16 23:48:25.008 DEBUG (MainThread) [custom_components.rfplayer] event of type sensor: {'id': 'X2D_2919891712_cmd', 'sensor': 'command', 'value': 'alive', 'unit': None}
    Line 885: 2024-08-16 23:48:25.008 DEBUG (MainThread) [custom_components.rfplayer] event_id not known, adding new device
    Line 888: 2024-08-16 23:48:25.011 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=rfplayer, service=send_command>
    Line 889: 2024-08-16 23:48:25.011 INFO (MainThread) [custom_components.rfplayer] Initiating Rfplayer connection
    Line 889: 2024-08-16 23:48:25.011 INFO (MainThread) [custom_components.rfplayer] Initiating Rfplayer connection
    Line 890: 2024-08-16 23:48:25.067 DEBUG (MainThread) [custom_components.rfplayer.rflib.rfpprotocol] CommandSerialization
    Line 891: 2024-08-16 23:48:25.068 DEBUG (MainThread) [custom_components.rfplayer.rflib.rfpprotocol] PacketHandling
    Line 892: 2024-08-16 23:48:25.068 DEBUG (MainThread) [custom_components.rfplayer.rflib.rfpprotocol] EventHandling
    Line 893: 2024-08-16 23:48:25.085 INFO (MainThread) [custom_components.rfplayer] Connected to Rfplayer
    Line 893: 2024-08-16 23:48:25.085 INFO (MainThread) [custom_components.rfplayer] Connected to Rfplayer
    Line 894: 2024-08-16 23:48:25.086 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up rfplayer.binary_sensor
    Line 896: 2024-08-16 23:48:25.088 INFO (MainThread) [homeassistant.components.number] Setting up rfplayer.number
    Line 897: 2024-08-16 23:48:25.088 DEBUG (MainThread) [custom_components.rfplayer.number] Add jamming number entity
    Line 899: 2024-08-16 23:48:25.090 INFO (MainThread) [homeassistant.components.sensor] Setting up rfplayer.sensor
    Line 900: 2024-08-16 23:48:25.090 DEBUG (MainThread) [custom_components.rfplayer.sensor] Add sensor entity X2D_2919891712_cmd
    Line 901: 2024-08-16 23:48:25.091 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new sensor.rfplayer entity: sensor.x2d_2919891712
    Line 993: 2024-08-16 23:48:25.180 INFO (MainThread) [homeassistant.components.switch] Setting up rfplayer.switch
    Line 997: 2024-08-16 23:48:25.183 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=rfplayer, service=send_command>
    Line 998: 2024-08-16 23:48:25.184 INFO (MainThread) [custom_components.rfplayer] Initiating Rfplayer connection
    Line 998: 2024-08-16 23:48:25.184 INFO (MainThread) [custom_components.rfplayer] Initiating Rfplayer connection
    Line 999: 2024-08-16 23:48:25.237 DEBUG (MainThread) [custom_components.rfplayer.rflib.rfpprotocol] CommandSerialization
    Line 1000: 2024-08-16 23:48:25.237 DEBUG (MainThread) [custom_components.rfplayer.rflib.rfpprotocol] PacketHandling
    Line 1001: 2024-08-16 23:48:25.237 DEBUG (MainThread) [custom_components.rfplayer.rflib.rfpprotocol] EventHandling
    Line 1002: 2024-08-16 23:48:25.246 INFO (MainThread) [custom_components.rfplayer] Connected to Rfplayer
    Line 1002: 2024-08-16 23:48:25.246 INFO (MainThread) [custom_components.rfplayer] Connected to Rfplayer
    Line 1003: 2024-08-16 23:48:25.246 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up rfplayer.binary_sensor
    Line 1005: 2024-08-16 23:48:25.249 INFO (MainThread) [homeassistant.components.number] Setting up rfplayer.number
    Line 1006: 2024-08-16 23:48:25.249 DEBUG (MainThread) [custom_components.rfplayer.number] Add jamming number entity
    Line 1008: 2024-08-16 23:48:25.269 INFO (MainThread) [homeassistant.components.sensor] Setting up rfplayer.sensor
    Line 1009: 2024-08-16 23:48:25.269 DEBUG (MainThread) [custom_components.rfplayer.sensor] Add sensor entity X2D_2919891712_cmd
    Line 1012: 2024-08-16 23:48:25.271 INFO (MainThread) [homeassistant.components.switch] Setting up rfplayer.switch
    Line 1016: 2024-08-16 23:48:25.275 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=rfplayer, service=send_command>
    Line 1017: 2024-08-16 23:48:25.277 INFO (MainThread) [custom_components.rfplayer] Initiating Rfplayer connection
    Line 1017: 2024-08-16 23:48:25.277 INFO (MainThread) [custom_components.rfplayer] Initiating Rfplayer connection
    Line 1018: 2024-08-16 23:48:25.303 DEBUG (MainThread) [custom_components.rfplayer.rflib.rfpprotocol] CommandSerialization
    Line 1019: 2024-08-16 23:48:25.303 DEBUG (MainThread) [custom_components.rfplayer.rflib.rfpprotocol] PacketHandling
    Line 1020: 2024-08-16 23:48:25.303 DEBUG (MainThread) [custom_components.rfplayer.rflib.rfpprotocol] EventHandling
    Line 1021: 2024-08-16 23:48:25.327 INFO (MainThread) [custom_components.rfplayer] Connected to Rfplayer
    Line 1021: 2024-08-16 23:48:25.327 INFO (MainThread) [custom_components.rfplayer] Connected to Rfplayer
    Line 1022: 2024-08-16 23:48:25.328 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up rfplayer.binary_sensor
    Line 1024: 2024-08-16 23:48:25.330 INFO (MainThread) [homeassistant.components.number] Setting up rfplayer.number
    Line 1025: 2024-08-16 23:48:25.330 DEBUG (MainThread) [custom_components.rfplayer.number] Add jamming number entity
    Line 1027: 2024-08-16 23:48:25.331 INFO (MainThread) [homeassistant.components.sensor] Setting up rfplayer.sensor
    Line 1028: 2024-08-16 23:48:25.332 DEBUG (MainThread) [custom_components.rfplayer.sensor] Add sensor entity X2D_2919891712_cmd
    Line 1031: 2024-08-16 23:48:25.333 INFO (MainThread) [homeassistant.components.switch] Setting up rfplayer.switch
    Line 1035: 2024-08-16 23:48:25.355 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=rfplayer, service=send_command>
    Line 1036: 2024-08-16 23:48:25.355 INFO (MainThread) [custom_components.rfplayer] Initiating Rfplayer connection
    Line 1036: 2024-08-16 23:48:25.355 INFO (MainThread) [custom_components.rfplayer] Initiating Rfplayer connection
    Line 1039: 2024-08-16 23:48:25.390 DEBUG (MainThread) [custom_components.rfplayer.rflib.rfpprotocol] CommandSerialization
    Line 1040: 2024-08-16 23:48:25.390 DEBUG (MainThread) [custom_components.rfplayer.rflib.rfpprotocol] PacketHandling
    Line 1041: 2024-08-16 23:48:25.390 DEBUG (MainThread) [custom_components.rfplayer.rflib.rfpprotocol] EventHandling
    Line 1042: 2024-08-16 23:48:25.390 INFO (MainThread) [custom_components.rfplayer] Connected to Rfplayer
    Line 1042: 2024-08-16 23:48:25.390 INFO (MainThread) [custom_components.rfplayer] Connected to Rfplayer
    Line 1043: 2024-08-16 23:48:25.391 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up rfplayer.binary_sensor
    Line 1045: 2024-08-16 23:48:25.392 INFO (MainThread) [homeassistant.components.number] Setting up rfplayer.number
    Line 1046: 2024-08-16 23:48:25.392 DEBUG (MainThread) [custom_components.rfplayer.number] Add jamming number entity
    Line 1048: 2024-08-16 23:48:25.394 INFO (MainThread) [homeassistant.components.sensor] Setting up rfplayer.sensor
    Line 1049: 2024-08-16 23:48:25.394 DEBUG (MainThread) [custom_components.rfplayer.sensor] Add sensor entity X2D_2919891712_cmd
    Line 1052: 2024-08-16 23:48:25.425 INFO (MainThread) [homeassistant.components.switch] Setting up rfplayer.switch
    Line 1056: 2024-08-16 23:48:25.461 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=rfplayer, service=send_command>
    Line 1057: 2024-08-16 23:48:25.462 INFO (MainThread) [custom_components.rfplayer] Initiating Rfplayer connection
    Line 1057: 2024-08-16 23:48:25.462 INFO (MainThread) [custom_components.rfplayer] Initiating Rfplayer connection
    Line 1058: 2024-08-16 23:48:25.484 DEBUG (MainThread) [custom_components.rfplayer.rflib.rfpprotocol] CommandSerialization
    Line 1059: 2024-08-16 23:48:25.484 DEBUG (MainThread) [custom_components.rfplayer.rflib.rfpprotocol] PacketHandling
    Line 1060: 2024-08-16 23:48:25.484 DEBUG (MainThread) [custom_components.rfplayer.rflib.rfpprotocol] EventHandling
    Line 1061: 2024-08-16 23:48:25.484 INFO (MainThread) [custom_components.rfplayer] Connected to Rfplayer
    Line 1061: 2024-08-16 23:48:25.484 INFO (MainThread) [custom_components.rfplayer] Connected to Rfplayer
    Line 1062: 2024-08-16 23:48:25.485 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up rfplayer.binary_sensor
    Line 1064: 2024-08-16 23:48:25.488 INFO (MainThread) [homeassistant.components.number] Setting up rfplayer.number
    Line 1065: 2024-08-16 23:48:25.488 DEBUG (MainThread) [custom_components.rfplayer.number] Add jamming number entity
    Line 1067: 2024-08-16 23:48:25.506 INFO (MainThread) [homeassistant.components.sensor] Setting up rfplayer.sensor
    Line 1068: 2024-08-16 23:48:25.507 DEBUG (MainThread) [custom_components.rfplayer.sensor] Add sensor entity X2D_2919891712_cmd
    Line 1071: 2024-08-16 23:48:25.509 INFO (MainThread) [homeassistant.components.switch] Setting up rfplayer.switch
    Line 1075: 2024-08-16 23:48:25.525 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=rfplayer, service=send_command>
    Line 1076: 2024-08-16 23:48:25.525 INFO (MainThread) [custom_components.rfplayer] Initiating Rfplayer connection
    Line 1076: 2024-08-16 23:48:25.525 INFO (MainThread) [custom_components.rfplayer] Initiating Rfplayer connection
    Line 1077: 2024-08-16 23:48:25.579 DEBUG (MainThread) [custom_components.rfplayer.rflib.rfpprotocol] CommandSerialization
    Line 1078: 2024-08-16 23:48:25.579 DEBUG (MainThread) [custom_components.rfplayer.rflib.rfpprotocol] PacketHandling
    Line 1079: 2024-08-16 23:48:25.579 DEBUG (MainThread) [custom_components.rfplayer.rflib.rfpprotocol] EventHandling
    Line 1080: 2024-08-16 23:48:25.580 INFO (MainThread) [custom_components.rfplayer] Connected to Rfplayer
    Line 1080: 2024-08-16 23:48:25.580 INFO (MainThread) [custom_components.rfplayer] Connected to Rfplayer
    Line 1081: 2024-08-16 23:48:25.580 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up rfplayer.binary_sensor
    Line 1083: 2024-08-16 23:48:25.584 INFO (MainThread) [homeassistant.components.number] Setting up rfplayer.number
    Line 1084: 2024-08-16 23:48:25.584 DEBUG (MainThread) [custom_components.rfplayer.number] Add jamming number entity
    Line 1086: 2024-08-16 23:48:25.600 INFO (MainThread) [homeassistant.components.sensor] Setting up rfplayer.sensor
    Line 1087: 2024-08-16 23:48:25.601 DEBUG (MainThread) [custom_components.rfplayer.sensor] Add sensor entity X2D_2919891712_cmd
    Line 1090: 2024-08-16 23:48:25.616 INFO (MainThread) [homeassistant.components.switch] Setting up rfplayer.switch
    Line 1094: 2024-08-16 23:48:25.638 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=rfplayer, service=send_command>
    Line 1095: 2024-08-16 23:48:25.639 INFO (MainThread) [custom_components.rfplayer] Initiating Rfplayer connection
    Line 1095: 2024-08-16 23:48:25.639 INFO (MainThread) [custom_components.rfplayer] Initiating Rfplayer connection
    Line 1096: 2024-08-16 23:48:25.767 DEBUG (MainThread) [custom_components.rfplayer.rflib.rfpprotocol] CommandSerialization
    Line 1097: 2024-08-16 23:48:25.767 DEBUG (MainThread) [custom_components.rfplayer.rflib.rfpprotocol] PacketHandling
    Line 1098: 2024-08-16 23:48:25.767 DEBUG (MainThread) [custom_components.rfplayer.rflib.rfpprotocol] EventHandling
    Line 1099: 2024-08-16 23:48:25.767 INFO (MainThread) [custom_components.rfplayer] Connected to Rfplayer
    Line 1099: 2024-08-16 23:48:25.767 INFO (MainThread) [custom_components.rfplayer] Connected to Rfplayer
    Line 1100: 2024-08-16 23:48:25.768 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up rfplayer.binary_sensor
    Line 1102: 2024-08-16 23:48:25.769 INFO (MainThread) [homeassistant.components.number] Setting up rfplayer.number
    Line 1103: 2024-08-16 23:48:25.769 DEBUG (MainThread) [custom_components.rfplayer.number] Add jamming number entity
    Line 1105: 2024-08-16 23:48:25.771 INFO (MainThread) [homeassistant.components.sensor] Setting up rfplayer.sensor
    Line 1106: 2024-08-16 23:48:25.771 DEBUG (MainThread) [custom_components.rfplayer.sensor] Add sensor entity X2D_2919891712_cmd
    Line 1109: 2024-08-16 23:48:25.772 INFO (MainThread) [homeassistant.components.switch] Setting up rfplayer.switch
    Line 1113: 2024-08-16 23:48:25.789 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=rfplayer, service=send_command>
    Line 1114: 2024-08-16 23:48:25.789 INFO (MainThread) [custom_components.rfplayer] Initiating Rfplayer connection
    Line 1114: 2024-08-16 23:48:25.789 INFO (MainThread) [custom_components.rfplayer] Initiating Rfplayer connection
    Line 1115: 2024-08-16 23:48:25.814 DEBUG (MainThread) [custom_components.rfplayer.rflib.rfpprotocol] CommandSerialization
    Line 1116: 2024-08-16 23:48:25.814 DEBUG (MainThread) [custom_components.rfplayer.rflib.rfpprotocol] PacketHandling
    Line 1117: 2024-08-16 23:48:25.814 DEBUG (MainThread) [custom_components.rfplayer.rflib.rfpprotocol] EventHandling
    Line 1118: 2024-08-16 23:48:25.814 INFO (MainThread) [custom_components.rfplayer] Connected to Rfplayer
    Line 1118: 2024-08-16 23:48:25.814 INFO (MainThread) [custom_components.rfplayer] Connected to Rfplayer
    Line 1119: 2024-08-16 23:48:25.814 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up rfplayer.binary_sensor

Home assistant still bootloop :

2024-08-16 23:49:08.029 DEBUG (MainThread) [custom_components.rfplayer.rflib.rfpprotocol] PacketHandling
2024-08-16 23:49:08.029 DEBUG (MainThread) [custom_components.rfplayer.rflib.rfpprotocol] EventHandling
2024-08-16 23:49:08.029 INFO (MainThread) [custom_components.rfplayer] Connected to Rfplayer
2024-08-16 23:49:08.030 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up rfplayer.binary_sensor
2024-08-16 23:49:08.031 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=binary_sensor.jamming_detection, old_state=<state binary_sensor.jamming_detection=unavailable; restored=True, device_class=problem, icon=mdi:waveform, friendly_name=Jamming detection, supported_features=0 @ 2024-08-16T23:49:08.016090+02:00>, new_state=<state binary_sensor.jamming_detection=off; assumed_state=True, device_class=problem, icon=mdi:waveform, friendly_name=Jamming detection @ 2024-08-16T23:49:08.031095+02:00>>
2024-08-16 23:49:08.032 INFO (MainThread) [homeassistant.components.number] Setting up rfplayer.number
2024-08-16 23:49:08.032 DEBUG (MainThread) [custom_components.rfplayer.number] Add jamming number entity
2024-08-16 23:49:08.033 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=number.jamming_detection_level, old_state=<state number.jamming_detection_level=unavailable; restored=True, min=0, max=10, step=1, mode=slider, friendly_name=Jamming detection level, supported_features=0 @ 2024-08-16T23:49:08.016764+02:00>, new_state=<state number.jamming_detection_level=unknown; min=0, max=10, step=1, mode=slider, assumed_state=True, friendly_name=Jamming detection level @ 2024-08-16T23:49:08.033225+02:00>>
2024-08-16 23:49:08.034 INFO (MainThread) [homeassistant.components.sensor] Setting up rfplayer.sensor
2024-08-16 23:49:08.034 DEBUG (MainThread) [custom_components.rfplayer.sensor] Add sensor entity X2D_2919891712_cmd
2024-08-16 23:49:08.035 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.x2d_2919891712, old_state=<state sensor.x2d_2919891712=unavailable; restored=True, friendly_name=X2D 2919891712, supported_features=0 @ 2024-08-16T23:49:08.017592+02:00>, new_state=<state sensor.x2d_2919891712=alive; assumed_state=True, friendly_name=X2D 2919891712 @ 2024-08-16T23:49:08.035020+02:00>>
2024-08-16 23:49:08.036 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_reported[L]: entity_id=sensor.x2d_2919891712, old_last_reported=2024-08-16T23:49:08.035020+02:00, new_state=<state sensor.x2d_2919891712=alive; assumed_state=True, friendly_name=X2D 2919891712 @ 2024-08-16T23:49:08.035020+02:00>>
2024-08-16 23:49:08.036 INFO (MainThread) [homeassistant.components.switch] Setting up rfplayer.switch
2024-08-16 23:49:08.037 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=binary_sensor.jamming_detection, old_state=<state binary_sensor.jamming_detection=off; assumed_state=True, device_class=problem, icon=mdi:waveform, friendly_name=Jamming detection @ 2024-08-16T23:49:08.031095+02:00>, new_state=<state binary_sensor.jamming_detection=unavailable; restored=True, device_class=problem, icon=mdi:waveform, friendly_name=Jamming detection, supported_features=0 @ 2024-08-16T23:49:08.037252+02:00>>
2024-08-16 23:49:08.037 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=number.jamming_detection_level, old_state=<state number.jamming_detection_level=unknown; min=0, max=10, step=1, mode=slider, assumed_state=True, friendly_name=Jamming detection level @ 2024-08-16T23:49:08.033225+02:00>, new_state=<state number.jamming_detection_level=unavailable; restored=True, min=0, max=10, step=1, mode=slider, friendly_name=Jamming detection level, supported_features=0 @ 2024-08-16T23:49:08.037856+02:00>>
2024-08-16 23:49:08.038 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.x2d_2919891712, old_state=<state sensor.x2d_2919891712=alive; assumed_state=True, friendly_name=X2D 2919891712 @ 2024-08-16T23:49:08.035020+02:00>, new_state=<state sensor.x2d_2919891712=unavailable; restored=True, friendly_name=X2D 2919891712, supported_features=0 @ 2024-08-16T23:49:08.038381+02:00>>
2024-08-16 23:49:08.039 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=rfplayer, service=send_command>
2024-08-16 23:49:08.039 INFO (MainThread) [custom_components.rfplayer] Initiating Rfplayer connection
2024-08-16 23:49:08.048 DEBUG (MainThread) [custom_components.rfplayer.rflib.rfpprotocol] CommandSerialization`
Aohzan commented 3 weeks ago

don't you have the error logs anymore ?

max5962 commented 3 weeks ago

Hello. No error. "Just " boot loop

Aohzan commented 3 weeks ago

can you delete the integration and add it again

max5962 commented 3 weeks ago
  1. rm /custom_component/rfplayer/*
  2. git clone -b sensor_handle_str_value GIT
  3. cp -r custom_component/rfplayer/ ( git ) custom_component/rfplayer/
  4. reboot
  5. plug the rfplayer
  6. reboot
  7. bootloop :(

home-Tue 20 Aug 2024 023532 PM CEST.log

max5962 commented 2 weeks ago

Hello do you need more information or tests ? maxime

Aohzan commented 2 weeks ago

delete the integration in home assistant UI, not the files please

max5962 commented 1 week ago

Same logs :-/

Aohzan commented 1 week ago

Can you past full error logs please

max5962 commented 1 week ago

provided by email :)

Ahd33 commented 5 days ago

same trouble on home assistant green

Aohzan commented 5 days ago

@Ahd33 il n'y a pas de rapport avec le matériel, je pense que vous avez un reliquat de config

il faudrait que vous supprimiez l'intégration :

image

que vous preniez bien la version de la branche sensor_handle_str_value, vous redémarrez, et vous réintégriez vos équipements un par un

Ahd33 commented 4 days ago

:) I will go on in english , even if you notice i'm french , in case of the case i have is the same than max and we can involve to find a common solution . Than you very much for your quick answer , it's very smart .

I have let all night long my Zigate- RFplayer ( because when i bought it it was still fabulous zigate and not yet GCE firm that develop and sell it , and maybe this has an importance regarding the compatbility , i do not know ).

this morning try to log home assistant --> as usual indicatoin that the url can not be reach disconnect the rfplayer --> as usual still impossible to connect long press on home assitant green to reboot --> Home assitant still alive but ....

all the configuration have been lost, force to create new user login / i enter my ''existing'' log in , it considered it as new so i enter it and renew my configuration , and i will first try to add rfplayer , before anything else

Ahd33 commented 4 days ago

i have disconnect the search atuomatical component in the configuration of the GCE RFplayer , and i can now agin boot home assistant ( this is fresh news so still waiting to see if it's stable )