I have followed this guide to set up haos with my usb300 to be able to view and toggle my eltako fsr14-4x controlled lights.
I have set up my enoceanmqtt.devices like this
[relay_state/timon]
address = 0x003CEA19 # I don't know what to put here,
# I've tried everything I've come across
# but it may be part of the solution
rorg = 0xF6
func = 0x02
type = 0x01
[relay/timon]
address = 0xFFFFFFFF
rorg = 0xF6
func = 0x02
type = 0x01
sender = 0xFFA6E480
virtual = 1
and have set up a corrosponding switch template in my configuration.yaml
# Loads default set of integrations. Do not remove.
default_config:
# Load frontend themes from the themes folder
frontend:
themes: !include_dir_merge_named themes
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
switch:
- platform: template
switches:
timon:
friendly_name: Timon licht
value_template: "{{ is_state('select.e2m_relay_timon_action', 'AO') }}"
# I know the above is just reflecting whatever HA last did,
# not the actual state
turn_on:
- service: select.select_option
target:
entity_id: select.e2m_relay_timon_action
data:
option: AO
turn_off:
- service: select.select_option
target:
entity_id: select.e2m_relay_timon_action
data:
option: AI
My enocean add-in log is quite cryptic:
2025-02-10 17:57:49,613 INFO: Sending packet
2025-02-10 17:57:49,923 INFO: sending: FF:A6:E4:80->FF:FF:FF:FF (-255 dBm): 0x01 ['0xf6', '0x10', '0xff', '0xa6', '0xe4', '0x80', '0x30'] ['0x3', '0xff', '0xff', '0xff', '0xff', '0xff', '0x0'] OrderedDict({'R1': {'description': 'Rocker 1st action', 'unit': '', 'value': 'Button AI', 'raw_value': 0}, 'EB': {'description': 'Energy bow', 'unit': '', 'value': 'pressed', 'raw_value': 1}, 'R2': {'description': 'Rocker 2nd action', 'unit': '', 'value': 'Button AI', 'raw_value': 0}, 'SA': {'description': '2nd action', 'unit': '', 'value': 'No 2nd action', 'raw_value': 0}, 'T21': {'description': 'T21', 'unit': '', 'value': True, 'raw_value': 1}, 'NU': {'description': 'NU', 'unit': '', 'value': True, 'raw_value': 1}})
2025-02-10 17:57:49,952 INFO: Sending packet
2025-02-10 17:57:51,503 INFO: sending: FF:A6:E4:80->FF:FF:FF:FF (-255 dBm): 0x01 ['0xf6', '0x30', '0xff', '0xa6', '0xe4', '0x80', '0x30'] ['0x3', '0xff', '0xff', '0xff', '0xff', '0xff', '0x0'] OrderedDict({'R1': {'description': 'Rocker 1st action', 'unit': '', 'value': 'Button AO', 'raw_value': 1}, 'EB': {'description': 'Energy bow', 'unit': '', 'value': 'pressed', 'raw_value': 1}, 'R2': {'description': 'Rocker 2nd action', 'unit': '', 'value': 'Button AI', 'raw_value': 0}, 'SA': {'description': '2nd action', 'unit': '', 'value': 'No 2nd action', 'raw_value': 0}, 'T21': {'description': 'T21', 'unit': '', 'value': True, 'raw_value': 1}, 'NU': {'description': 'NU', 'unit': '', 'value': True, 'raw_value': 1}})
It has at some point gotten data CRC error
, header CRC error
and INFO: got response packet: OK
messages.
My problem:
I can’t find any state entity that reflects the real life state of the light. All I have for now is what was last selected in haos, but I want to be able to view the current state too. I want to integrate this into my switch template.