Dear @mak-dev
Dear @ruben88
Thanks for the link. Came across earlier, but as I’m not a programmer I don’t know how to translate this into HA. Now it’s in this thread - might be helpful also for others.
My “stupid” wall-switches are probably F6-01-01 (just broadcast).
In DolphinView I can simulate this behavior - (sending same informatin as if I push the wall-switch, see post4 above).
→ my big problem: I don’t know how to tell HA what to send. Ruben88’s solution I assume close to what I need: turn_on looks, good, and turn_off I’d change from 10 to 00?
def turn_on(self, **kwargs: Any) -> None:
"""Turn on the switch."""
data = [0xF6, 0x30]
data.extend(self.dev_id)
data.extend([0x30])
self.send_command(
packet_type = 0x01,
data = data,
optional = [0x03, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF]
)
self._on_state = True
def turn_off(self, **kwargs: Any) -> None:
"""Turn off the switch."""
data = [0xF6, 0x00]
data.extend(self.dev_id)
data.extend([0x00])
self.send_command(
packet_type = 0x01,
data = data,
optional = [0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF]
)
self._on_state = False
When I check logs in HA and I push the wall-button (and release, and have the FSR61 sending confirmation telegrams), I see the following:
Push wall switch:
FE:FA:AD:BA->FF:FF:FF:FF (-73 dBm): 0x01 [‘0xf6’, ‘0x30’, ‘0xfe’, ‘0xfa’, ‘0xad’, ‘0xba’, ‘0x30’]
[‘0x0’, ‘0xff’, ‘0xff’, ‘0xff’, ‘0xff’, ‘0x49’, ‘0x0’]
Answer from FSR61:
04:23:3E:30->FF:FF:FF:FF (-71 dBm): 0x01 [‘0xf6’, ‘0x70’, ‘0x4’, ‘0x23’, ‘0x3e’, ‘0x30’, ‘0x30’]
[‘0x0’, ‘0xff’, ‘0xff’, ‘0xff’, ‘0xff’, ‘0x47’, ‘0x0’]
Release wall switch:
FE:FA:AD:BA->FF:FF:FF:FF (-79 dBm): 0x01 [‘0xf6’, ‘0x0’, ‘0xfe’, ‘0xfa’, ‘0xad’, ‘0xba’, ‘0x20’]
[‘0x0’, ‘0xff’, ‘0xff’, ‘0xff’, ‘0xff’, ‘0x4f’, ‘0x0’]
Answer from FSR61:
04:23:3E:30->FF:FF:FF:FF (-70 dBm): 0x01 [‘0xf6’, ‘0x50’, ‘0x4’, ‘0x23’, ‘0x3e’, ‘0x30’, ‘0x30’]
[‘0x0’, ‘0xff’, ‘0xff’, ‘0xff’, ‘0xff’, ‘0x46’, ‘0x0’]
in Short: 1 how to adjust code from ruben88 to have HA sending above structure, and 2 how to configure the switch: - platform: enocean in HA to simulate above? (just broadcast)
I’ll continue to do some trial& error, but happy for any additional hint.
Thanks and best regards