[quote=“lolodomo, post:558, topic:170604”][quote=“cboulang, post:556, topic:170604”]Bert,
so from your standpoint at the pairing does the plug (in my case) ever send a message or not ?
if not, it would mean that, where on x10 we were receiving Id from devices, we have to create and assign id/groupid to the device ?
if this is corect, does it mean that we need to manage (and store ) id, group id, etc within the plugin as it would failed if pairing details are given by the user, may reuse id+group id that have been used already and therefore break the whole stuff ?
Chris[/quote]
I think we have to store the remote id, the group code and the unit number to identify a Vera device, that is the same principle as for the other protocols already managed. And the association feature of the plugin will allow users to define a unique Vera device even if they have several remotes controlling the same physical device.[/quote]
I agree, but if you refer to the x10 or the code I read, this is where I identify the catch: you are not only storing id sent by the device for later access, I understand there that you have to create the Id, group id, and iterate for each new device. if you have already done this for other device, that’s great. if not it means a quite new laege piece of work to be done.
The only think I need to understand is how is done the association between a remote button and a socket device,
let's wait for Bert feedback.
and if the group code / unit number is defined by the remote or by the controlled unit ?
You mean a Blyss remote or the Blyss box in this case ? I guess they both can do it. That's what i understand from the blog of the arduino guys who hacked thr Blyss stuff. may be I was over assuming.
Is there a button on the socket device to validate the association for example ?
no, you press for several second the only button on the plug/socket, then the remote, there's association, and you're done. the only other thing you can do it remove the association with the remote by pressing the button for a long time.