Battery Low notification stays after replacing batteries

Please use template to report bugs and problems. Post here your questions when not sure where else to post
Only for bugs in the Domoticz application! other problems go in different subforums!
Forum rules
Before posting here, make sure you are on the latest Beta or Stable version.
If you have problems related to the web gui, clear your browser cache + appcache first.

Use the following template when posting here:

Version: xxxx
Platform: xxxx
Plugin/Hardware: xxxx
Description:
.....

If you are having problems with scripts/blockly, always post the script (in a spoiler or code tag) or screenshots of your blockly

If you are replying, please do not quote images/code from the first post

Please mark your topic as Solved when the problem is solved.
Post Reply
jvmaanen
Posts: 13
Joined: Wednesday 01 March 2017 14:32
Target OS: Raspberry Pi
Domoticz version:
Contact:

Battery Low notification stays after replacing batteries

Post by jvmaanen » Thursday 09 August 2018 10:17

Recently I received a Battery Low notifications for my Everspring SP103 Motion Sensor. The battery level was 40%. After replacing the batteries I kept receiving the Battery Low notifications. The level was still 40%. I replaced the batteries again with other new batteries and I tested these batteries before I placed them in the Motion Sensor. I still have the Battery Low notifications after two days. I still reports 40%. The wake up interval for this device is 14400 seconds (4h).

SweetPants
Posts: 2397
Joined: Friday 12 July 2013 21:24
Target OS: Linux
Domoticz version: V4.10267
Location: The Netherlands
Contact:

Re: Battery Low notification stays after replacing batteries

Post by SweetPants » Thursday 09 August 2018 13:55

Are you sure that there is no new device with different idx after you replaced the battery? Does 'lastseen' of your device update?
Edit: Just noticed this is a Z-wave device. Don;t know if they change idx also when changing battery.
Ubuntu 16.04.5 LTS, Intel NUC, MySensors 2.3.0-alpha, Pro Mini 3.3/8M RFM69(HW), ESP8266 (SDK2.2.0), Sonoff, RFLink, RFXcom, MQTT, NodeRed, Domoticz Beta (from source)

User avatar
heggink
Posts: 621
Joined: Tuesday 08 September 2015 21:44
Target OS: Raspberry Pi
Domoticz version: V4.9999
Location: NL
Contact:

Re: Battery Low notification stays after replacing batteries

Post by heggink » Thursday 16 August 2018 8:50

jvmaanen wrote:Recently I received a Battery Low notifications for my Everspring SP103 Motion Sensor. The battery level was 40%. After replacing the batteries I kept receiving the Battery Low notifications. The level was still 40%. I replaced the batteries again with other new batteries and I tested these batteries before I placed them in the Motion Sensor. I still have the Battery Low notifications after two days. I still reports 40%. The wake up interval for this device is 14400 seconds (4h).
Sounds familiar. Same sensor, same behaviour but I am hoping that it will today report accurate battery readings nearly a week after changing the batteries. I use the python plugin that creates battery devices. That took a couple of days. Yesterday domoticz finally showed 100% through json... Let's hope the low battery warnings are gone now. No idea why it took so long. Same happened with a zwave wall switch.
Pi3, latest beta
RFXCOM, z-wave (AEOTEC, switches, temhum, pir, contacts),
Plugwise2py, P1 'smart'meter & solar panel
Alexa, Wifi Cams motion detection
ESP: relays, PIR & Temp/TempHum
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest

User avatar
heggink
Posts: 621
Joined: Tuesday 08 September 2015 21:44
Target OS: Raspberry Pi
Domoticz version: V4.9999
Location: NL
Contact:

Re: Battery Low notification stays after replacing batteries

Post by heggink » Thursday 16 August 2018 12:58

Did some more testing and there's definitely a bug somewhere. Today the dzvents script still reported the low battery even though the JSON interface reports it at 100%:

Code: Select all

return {
        active = true,
        on = {
                timer = {'at 12:54'}
        },

logging = {
   level = domoticz.LOG_DEBUG,
   marker = "BATT "
},
        execute = function(domoticz)

                print('BATT: '..domoticz.devices('PIR_Garage').batteryLevel)

        end
}
2018-08-16 12:54:00.665 Status: dzVents: Info: BATT : ------ Start external script: lb.lua:, trigger: at 12:54
2018-08-16 12:54:00.683 Status: dzVents: Debug: BATT : Processing device-adapter for PIR_Garage: Switch device adapter
2018-08-16 12:54:00.683 Status: dzVents: BATT: 20
2018-08-16 12:54:00.683 Status: dzVents: Info: BATT : ------ Finished lb.lua

http://192.168.1.105:8080/json.htm?type ... order=Name

{
"AddjMulti" : 1.0,
"AddjMulti2" : 1.0,
"AddjValue" : 0.0,
"AddjValue2" : 0.0,
"BatteryLevel" : 100,
"CustomImage" : 0,
"Data" : "Off",
"Description" : "",
"DimmerType" : "none",
"Favorite" : 0,
"HardwareID" : 10,
"HardwareName" : "AEOTEC",
"HardwareType" : "OpenZWave USB",
"HardwareTypeVal" : 21,
"HaveDimmer" : true,
"HaveGroupCmd" : true,
"HaveTimeout" : false,
"ID" : "00002300",
"Image" : "Light",
"IsSubDevice" : false,
"LastUpdate" : "2018-08-16 11:41:46",
"Level" : 0,
"LevelInt" : 0,
"MaxDimLevel" : 100,
"Name" : "PIR_Garage",
"Notifications" : "false",
"PlanID" : "4",
"PlanIDs" : [ 4 ],
"Protected" : false,
"ShowNotifications" : true,
"SignalLevel" : "-",
"Status" : "Off",
"StrParam1" : "",
"StrParam2" : "",
"SubType" : "Switch",
"SwitchType" : "Motion Sensor",
"SwitchTypeVal" : 8,
"Timers" : "false",
"Type" : "Light/Switch",
"TypeImg" : "motion",
"Unit" : 1,
"Used" : 1,
"UsedByCamera" : false,
"XOffset" : "490",
"YOffset" : "408",
"idx" : "351"
},
Pi3, latest beta
RFXCOM, z-wave (AEOTEC, switches, temhum, pir, contacts),
Plugwise2py, P1 'smart'meter & solar panel
Alexa, Wifi Cams motion detection
ESP: relays, PIR & Temp/TempHum
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest

SweetPants
Posts: 2397
Joined: Friday 12 July 2013 21:24
Target OS: Linux
Domoticz version: V4.10267
Location: The Netherlands
Contact:

Re: Battery Low notification stays after replacing batteries

Post by SweetPants » Thursday 16 August 2018 13:40

I assume the JSON call get's it's info from the database (can you verify this?). So then dz_Ventz get's it's data from somewhere else. Did you restart domoticz already?
Ubuntu 16.04.5 LTS, Intel NUC, MySensors 2.3.0-alpha, Pro Mini 3.3/8M RFM69(HW), ESP8266 (SDK2.2.0), Sonoff, RFLink, RFXcom, MQTT, NodeRed, Domoticz Beta (from source)

User avatar
heggink
Posts: 621
Joined: Tuesday 08 September 2015 21:44
Target OS: Raspberry Pi
Domoticz version: V4.9999
Location: NL
Contact:

Re: Battery Low notification stays after replacing batteries

Post by heggink » Thursday 16 August 2018 14:14

Not sure where json gets it from but DB seems a fair assumption. I did restart, no dice.
Whether dzvents or plain lua remains to be seen.
Pi3, latest beta
RFXCOM, z-wave (AEOTEC, switches, temhum, pir, contacts),
Plugwise2py, P1 'smart'meter & solar panel
Alexa, Wifi Cams motion detection
ESP: relays, PIR & Temp/TempHum
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest

SweetPants
Posts: 2397
Joined: Friday 12 July 2013 21:24
Target OS: Linux
Domoticz version: V4.10267
Location: The Netherlands
Contact:

Re: Battery Low notification stays after replacing batteries

Post by SweetPants » Thursday 16 August 2018 18:44

I think dannybloe has to take a look at this.
Ubuntu 16.04.5 LTS, Intel NUC, MySensors 2.3.0-alpha, Pro Mini 3.3/8M RFM69(HW), ESP8266 (SDK2.2.0), Sonoff, RFLink, RFXcom, MQTT, NodeRed, Domoticz Beta (from source)

User avatar
waaren
Posts: 1345
Joined: Tuesday 03 January 2017 15:18
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Battery Low notification stays after replacing batteries

Post by waaren » Saturday 18 August 2018 16:46

heggink wrote:
Thursday 16 August 2018 14:14
Not sure where json gets it from but DB seems a fair assumption. I did restart, no dice.
Whether dzvents or plain lua remains to be seen.
I experienced the same. After updating to beta V4.9910 and a soft reset of my Zwave controller and a heal network (both in node management under hardware tab) and a bit of patience, the status is reported correctly again.
Raspberry (debian stretch via berryboot on Synology DS916+) , Domoticz (almost) latest Beta, , dzVents 2.6, RFLink, RFXtrx433e, P1, Youless, Harmony, Hue, Yeelight, Xiaomi, HomeWizard, Zwave, Amazon echo

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests