You could add '&battery=0' to the udevice command when batterycritical is true and add '; &battery=100' when batterycritical is false. The switch will turn yellow when the battery is critical.heggink wrote: ↑Monday 11 September 2017 17:27 Hi eddypoot,
The lock will not give you the battery %% but it will return the battery status. It would be fairly easy to not only update the status of the lock but also update the lock battery status. Sample message from the lock:
curl -s "http://IP:8080/lockState?nukiId=NUKI_ID ... IDGE_TOKEN" returns
{"state": 3, "stateName": "unlocked", "batteryCritical": false, "success": true}
You would need a separate device and a second check on the batteryCritical field.
H
Nuki doorlock support
Moderator: leecollings
-
- Posts: 115
- Joined: Sunday 11 January 2015 16:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Nuki doorlock support
- heggink
- Posts: 977
- Joined: Tuesday 08 September 2015 21:44
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 12451
- Location: NL
- Contact:
Re: Nuki doorlock support
Excellent addition. Many thanks.
Docker in Truenas scale, close to latest beta
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
Who is online
Users browsing this forum: Google [Bot] and 1 guest