Panstamp Integration

Begonnen von youngengineer, 17 September 2014, 07:37:09

Vorheriges Thema - Nächstes Thema

youngengineer

Fantastic, Andre, once again! So far no duplicate endpoints though I will have to wait some more time before I can confirm the fix.
I will keep testing for the day and let you know the results.

I do possibly have another bug in regards to FHEM's automatic identification of the SWAP motes function. The system has worked quite well previously however as I have increased the number of motes, I have noticed two motes which have duplicate ID's, so four in total. I'm not sure if this is a limitation or a bug, would you recommend that I set the ID of each Mote manually in the sketch to avoid this issue as you would when using Lagarto? I have now soldered, potted 12 motes so it will be hard to reflash them, but If I have no choice then I will.


justme1968

you can take one of each duplicate pair offline or make it unreachable. then you can set the adress of the remaining ones to non conflicting adressen. then you can bring back the other two.
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

https://github.com/sponsors/justme-1968

youngengineer

Right ok, I understand what you have said, however it does not work. What you are suggesting is that I power down one of the duplicate pairs then I change the previous device address in the fhem config? Unfortunately they always come back with the same address, hmm. Unless I miss understood and you are suggesting that I assign the address in the sketch?

justme1968

no. not changing the address in the config and not power down a pair but one from each pair and then using set <device> regSet 09 XX to set a new unique adress on each of the two still powered on nodes.

the address register is a normal register that can be written to like any other register. you only have to make sure that at this time only one of the two devices listens. otherwise both would accept the new adress.

if the mote will confirm the changed adress the fhem modul will automatically change the internal definitions to the new adress.

don't forget the 'save' in fhem to save the new device adresses.
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

https://github.com/sponsors/justme-1968

youngengineer

Right, understood.

That seems to be working fine, thank you.

In the future would it be better practice to simply set the address directly in the sketch, to avoid this type of issue?


justme1968

this would make you less flexible. especialy if it is problematic to access your devices. 

the manual adress setting ahould be no problem of you  aktivate new panstamps one by one.

a fixed adress could potentialy be more reliable if it is worth the disadvantages is your decission.
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

https://github.com/sponsors/justme-1968