Open rnusser opened 3 years ago
You can't set the sender id to anything you want. You need to read out your base id and set the sender id in the range of BASE_ID -> BASE_ID + 0x80. You need to teach in your actor with the base id of your enocean dongle + transmitter offset.
I thought the sender ID is the ID of the switch I saw in the debug output FE:F2:86:22->FF:FF:FF:FF
.
So the address is not spoofed, is is actually the address of the hardware sending the message that counts (the dongle)?
I see, so for the second point if I teach the actor the ID, I suppose I can no longer use the mechanical switch. I would probably have to received messages sent by the switch and send them out from the dongle?
So the address is not spoofed, is is actually the address of the hardware sending the message that counts (the dongle)?
Yes, you can only send with your EURID (unique id) or within the range of your base id + 0x80. Iam not sure if the dongle sends something anything out if the sender id is not set correctly.
I see, so for the second point if I teach the actor the ID, I suppose I can no longer use the mechanical switch. I would probably have to received messages sent by the switch and send them out from the dongle?
Most actors can learn multiple sender ids they react to. If not, then yes you'll have to listen for the switch and then send the command again with the id of your dongle.
Although this project might be abandoned, I was hoping someone would be able to help me getting this code to work.
I am unable to get any lights to switch on or off. I have changed the
assemble_radio_packet
function inenocean_example.py
to the following:When I run the program the output is almost identical to the actual debug info I get when physically activating the switch:
This is the output wen the function is called to switch off the light:
And here is the debug output when pressing the switch manually to switch off the light:
The second list of values start with a 0x0 when coming from the light switch, and a 0x3 when sent by the function. This could be the repeater_count, but I am not sure.
Has anyone got one of these switches working?