Maybe someone can help me to understand how to set the ID for a LIVOLO device (but it will be the same problem for every devices not working in descovery mode) for RFXCom’s component.
I can use my RFXCom in HA with DIO/Chacon hardware or SOMFY cover for example.
But it’s not working with LIVOLO hardware (Light control).
Tests :
LIVOLO Switch with manual used : Working
LIVOLO Switch with LIVOLO remote control (after remote control synchronisation) : Working
Using RFXCom with RFXCom Management Tool, RFXCom logged DIO/Chacon remote control message : Working
Using RFXCom with RFXCom Management Tool, RFXCom didn’t log LIVOLO remote control message : Not Working
Using RFXCom with RFXCom Management Tool, LIVOLO Switch remote synchronisation worked (I can switch on/off LIVOLO with RFXCom)
Using RFXCom with HA in discovery mode, HA generated ID with DIO/Chacon remote control
Using RFXCom with HA in discovery mode, HA didn’t generate ID with LIVOLO remote control
Using RFXCom with HA, and trying to general manually the LIVOLO ID (Lighting5), didn’t work
ID with space to be more readable : 0A 14 05 AD 00 28 27 01 00 00 60
Another ID with space to be more readable : 0A 14 05 AD 00 28 27 01 01 00 60
I’m not sur but I understood that LIVOLO protocol can’t read by RFXCom, RFXCom can only generate ID. This point will explain why discovery mode didn’t work.
So, could somebody help me to understand how to generate an ID for a LIVOLO device but also all device manage with RFXCom ?
Tks for your quick answer
But as I explain, automatic_add: True (discovery mode) not working for LIVOLO Protocol.
I need to construct manually the ID …
In this documentation, the only example is for COCO protocol.
i’m trying to do the same thing but with a lighting1 device of type COCO GDR2.
I have found this post:
explaining how the code is made.
I have looked at the source code:
at this moment i have following code
071010044104
07 =package length
10 = lighting1
10 = subtype COCO GDR2
04 = seq nbr(don’t know if this is right)
41 = housecode A
04 = unitcode 4
but then i’m stuck
But it’s too hard for an EndUser to calculated an ID and finally not working without modifications (the rssi is 96 in the code and must be 00 in my case).
It will be an good ideas for rfxcom to make a tool to see/generate ID …
It should not be necessary to calculate an ID, since the auto add should handle it.
The only case where I see it is necessary to manually generate an ID is when you do not have an external remote.
A pull request to add functionality for generating IDs is welcome…
Normally it would no be necessary but in my case i have a remote but it’s not supported by rfxcom sending is supported but receiving not so i have to generate my own id
i’m making a python file which generate’s the id for HASS at this moment i only have the Lighting1 class and it’s all hardcoded.
When i have a good generator i will post it here
edit:
I’ve put the code to github:
this is the first time i’ve prgrammed in python so there will be better ways to write this @ouv27 can you try the code for your protocol because i can’t test that
Hi, I’m trying to use your script to generate ID’ for my Livolo switches, but I’m getting a syntax error. Could you post an example of the correct Syntax? Thanks.
for Livolo switches it would be:
generateId.py -t Lighting5 -s Livolo -p id,unit_code
where of course you replace id, unit_code with your id and unit_code
There’s a good chance that it won’t work if it doens’t work please post the generated id and i will test it at home
Sure, no prob. I’ve managed to control the light through rfxmngr (by assigning it a random ID and unit code, putting it in pairing mode, and then sending a button press through rfxmngr)
Just drop a line when it’s ready and I’d be happy to test it out. Thanks!
If someone has a working Livolo ID in HASS and the ID and unit code from rfxcom can you please send it to me?
Would be a lot easier to make the calculations if I know how the ID looks like in HASS
@Danielhiversen I see your point but I think being able to calculate it forward and backwards would be very helpful in many situations.
For example I’m currently trying to switch from a pilight setup with “selfmade” hardware to RFXtrx, hoping its more robust and has a better range when it comes to receiving. From the pilight setup I have all IDs, Unitcodes and Protocolls available, which you also get when using the RFXtrx Manager Software and which are quiet common out there. So in my case, it would be way easier and faster(!) to now, how to calculate the devices ID and adding them to the config, instead of searching for each in the autodetect list, step by step by step… That’s how I landed in this thread
In addition, since I have some devices and automations running, after a view minutes and my family at home, the autodetect list is so long, I can’t tell what is what anymore. So I have to wait for a “maintenetce window”, when they are gone!
So sum it up: I think there are many use cases out there, where this would be handy.
I have looked at your code, as I needed to create an ID for my devices (All lighting1: X10, Philips SBC, Impuls and ARC, yest I have quite a few). And I used all of these with Domoticz before, auto_add picking up the codes with my RFXTRX433 does not fly).
Very helpfull but I observed a few things:
The is no shebang in the first line (eg. #!/usr/bin/python)
Therefor it is also not clear to me to run python or python3?
Hardcoded seqnbr = 0x00 does not always work, X10 requires 0xff and for Impuls I don’t know yet (not 0x00 nor 0xff)