1-wire posting twice Topic is solved

Moderators: fantom, leecollings

Post Reply
grelle
Posts: 7
Joined: Thursday 28 November 2013 11:08
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Sweden / Östersund
Contact:

1-wire posting twice

Post by grelle »

Anyone have got an idea about why my 1-wire sensors are read twice in matter of millisec's in Domoticz ?!

This gives me trouble when doing some LUA scripting. At first I thought it had to do with that I had both w1-gpio modules loaded and OWFS at the samt time but I have removed the w1-gpio modules and still it is read twice.

Using Domoticz 2.3530 on RPi with 1-wire module DS2482-100.

Code: Select all

2015-11-12 08:40:15.907 (1-wire) Temp (Unknown)
2015-11-12 08:40:16.031 (1-wire) RFXSensor (Ljus1)
2015-11-12 08:40:16.145 (1-wire) RFXSensor (Ljus2)
2015-11-12 08:40:16.260 (1-wire) RFXSensor (Ljus3)
2015-11-12 08:40:16.373 (1-wire) RFXSensor (Ljus4)
2015-11-12 08:40:16.486 (1-wire) RFXSensor (Ljus1)
2015-11-12 08:40:16.602 (1-wire) RFXSensor (Ljus2)
2015-11-12 08:40:16.718 (1-wire) RFXSensor (Ljus3)
2015-11-12 08:40:16.833 (1-wire) RFXSensor (Ljus4)
2015-11-12 08:40:17.630 (1-wire) Temp (Temp - ljussensor)
2015-11-12 08:40:18.428 (1-wire) Temp (Temp - ljussensor)
2015-11-12 08:40:18.512 (1-wire) RFXMeter (Energi total)
2015-11-12 08:40:18.636 EventSystem: Script event triggered: /home/pi/domoticz/scripts/lua/script_device_counter_vp.lua
2015-11-12 08:40:18.594 (1-wire) RFXMeter (Energi VP)
2015-11-12 08:40:18.690 (1-wire) RFXMeter (Energi total)
2015-11-12 08:40:18.814 EventSystem: Script event triggered: /home/pi/domoticz/scripts/lua/script_device_counter_vp.lua
2015-11-12 08:40:18.773 (1-wire) RFXMeter (Energi VP)
Sweden / Östersund
grelle
Posts: 7
Joined: Thursday 28 November 2013 11:08
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Sweden / Östersund
Contact:

Re: 1-wire posting twice

Post by grelle »

Found out that I have double posts of devices in /mnt/1wire

Code: Select all

drwxrwxrwx 1 root root  8 Nov 12 09:58 05.4AEC29CDBAAB
drwxrwxrwx 1 root root  8 Nov 12 09:58 10.67C6697351FF
drwxrwxrwx 1 root root  8 Nov 12 09:58 1D.CCFC0C000000
drwxrwxrwx 1 root root  8 Nov 12 09:58 1D.CCFC0C000000
drwxrwxrwx 1 root root  8 Nov 12 09:58 20.9A4F0B000000
drwxrwxrwx 1 root root  8 Nov 12 09:58 20.9A4F0B000000
drwxrwxrwx 1 root root  8 Nov 12 09:58 28.535683050000
drwxrwxrwx 1 root root  8 Nov 12 09:58 28.535683050000
According to: http://owfs-developers.1086194.n5.nabbl ... d9751.html this double posts seems to be a bug in 2.8p15 version of OWFS. Trying to upgrade and will be back with result.
Sweden / Östersund
grelle
Posts: 7
Joined: Thursday 28 November 2013 11:08
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Sweden / Östersund
Contact:

Re: 1-wire posting twice

Post by grelle »

Indeed.

Followed this http://wiki.m.nu/index.php/OWFS_på_Rasperry_Pi wiki under "Kompilera själv" to install OWFS 3.1 and now I only have one of each device under /mnt/1wire/ and its no more double-polling/posting to Domoticz.

Code: Select all

2015-11-12 12:19:42.748 (1-wire) RFXSensor (Ljus1)
2015-11-12 12:19:42.945 (1-wire) RFXSensor (Ljus2)
2015-11-12 12:19:43.142 (1-wire) RFXSensor (Ljus3)
2015-11-12 12:19:44.837 (1-wire) Temp (Temp - ljussensor)
2015-11-12 12:19:44.971 (1-wire) RFXMeter (Energi total)
2015-11-12 12:19:45.144 EventSystem: Script event triggered: /home/pi/domoticz/scripts/lua/script_device_counter_vp.lua
2015-11-12 12:19:45.102 (1-wire) RFXMeter (Energi VP)
If I do OWFS --v i still get 2.8p15 though ?
Sweden / Östersund
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest