Battery level reporting from Android

Post Reply
pvoj
Posts: 9
Joined: Saturday 03 October 2015 22:32
Target OS: Raspberry Pi
Domoticz version: 3.5964
Location: Hungary
Contact:

Battery level reporting from Android

Post by pvoj » Friday 24 February 2017 18:06

Hi,
I read through several topics in the forum and found a simple solution to send battery information from Android to Domoticz. I use Automate on Android to get the data and create the json url. You can download the Flow from the Automate community Flow library. It is named: Battery level reporting tool for Domoticz. The battery level is sent over json like this: ../json.htm?type=command&param=udevice&idx=92&svalue=55.1
In Domoticz I created a dummy percentage sensor. The ID of the sensor is set in the Automate flow as well as the url and the ssid of the wifi.
Peter

DAVIZINHO
Posts: 33
Joined: Sunday 27 August 2017 18:00
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Battery level reporting from Android

Post by DAVIZINHO » Friday 13 October 2017 14:24

hi,
This is very interesting for me.
Can you tell us more details?

kluczus
Posts: 10
Joined: Tuesday 12 September 2017 14:39
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Battery level reporting from Android

Post by kluczus » Tuesday 17 October 2017 20:12

It is simple. I'm using a tasker. In my configuration I have:
- scene: two conditions - near wifi with specific ssid and time betwen 0:01am and 12:59 pm every 10 minutes,
- task: Net->http get, in server domoticzip:port, in path

Code: Select all

json.htm?type=command&param=udevice&idx=IDX&svalue=%BATT
........................................................................................
RPi2 + sonoff + 433MHz + Xiaomi Gateway

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests