I connect my pastamp’s to OpenHab, and last week try to write simle rules.
But have some strange errors.
I use customized Panstamp devices. First I use modifed JulianV onewire, but use much more DS18B20 (2 bytes for each).
Also I use some like Panstamp/binouts but use B.b format in xml for each switch.
In events log i see a very strange:
2016-02-16 18:20:00 - Temperature_C_PC state updated to 21.300000000000000710542735760100185871124267578125
…
2016-02-16 18:20:00 - Temperature_C_PC state updated to 21.70000000
I don’t understand why format is changes.
I Update every 30 sec just for testing and recive different format
I see this for all Temperature from DS1820 (as for me JulianV onewire use 2 byte format and this too long for it )
Also sometimes i recive wrong tempersture values (19 not 21), which stay correct after 5-10 sec. And after 10-20 minutes all ok (Prevision I use lagarto, and do not change any code on the end device, and in this case all tested and must be ok)
Another case - switch(relays) update.
2016-02-16 18:10:00 - Light_GF_Corridor_Point state updated to OFF
2016-02-16 18:10:00 - Heating_GF_Balkon state updated to ON
2016-02-16 18:10:00 - Light_GF_Balkon_Main state updated to OFF
But, Light_GF_Balkon_Main and Light_GF_Corridor_Point state 100% not chages.
It always update some?? switch.
2016-02-16 18:00:35 - Light_GF_Zal_Main state updated to ON
2016-02-16 18:00:35 - Light_GF_Zal_Second state updated to OFF
2016-02-16 18:00:35 - Light_GF_Kitchen_Main state updated to OFF
2016-02-16 18:00:35 - Light_GF_Corridor_Podsvetka state updated to OFF
2016-02-16 18:00:35 - Light_C_PC_Main state updated to OFF
2016-02-16 18:00:35 - Light_C_PC_Full state updated to ON
2016-02-16 18:00:35 - Light_GF_Corridor_Main state updated to OFF
Touch just one, update different. In each update I send 2 bytes (state of 16 relays, total 32 relays for one panstamp)
May be I do not clear write, sorry my English
Can explain more precision and show codes/full logs. If you need it.