Smart charger (Sonoff wi-fi smart switch)

Everything about esp8266 and more.
Post Reply
choze55
Posts: 1
Joined: Thursday 12 October 2017 22:06
Target OS: Raspberry Pi
Domoticz version:
Contact:

Smart charger (Sonoff wi-fi smart switch)

Post by choze55 » Thursday 12 October 2017 22:38

Hi there,

im totally new to this thing, so sorry in advance if my idea was already mentioned here.
Many people charge their phone during night which cause overcharging and shorten battery life. And that was my case. I bought Galaxy S7 year ago, charging it every night and ended up with damaged battery. My idea is about making todays smartphone chargers smart. I was thinking of using Sonoff smart wi-fi switch + MQTT. For example: in the evening you connect charger to your smartphone and let it charge your phone up to 90%. Then Sonoff powers off the charger to prevent it from overcharging. Early in the morning (lets say at the specific time or maybe an hour before preset alarm) charger comes on to fully charge the battery.
Hope you get that idea. :D
My question is, if it is possible to do that using Sonoff+Domoticz+smartphone.

Sorry if I placed it into wrong thread and thanks for your replies.

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

Re: Smart charger (Sonoff wi-fi smart switch)

Post by SweetPants » Friday 13 October 2017 11:20

Problem is, how do you know when your phone is charged to 90%?
Ubuntu 16.04.3 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)

CaesarPL
Posts: 128
Joined: Tuesday 08 November 2016 15:03
Target OS: Raspberry Pi
Domoticz version:
Location: Poland
Contact:

Re: Smart charger (Sonoff wi-fi smart switch)

Post by CaesarPL » Friday 13 October 2017 11:36

You can do it approximately. I do it for example in case of Roomba. I hate when the charger 'crackles' during charging. So first of all I run it only nightly for 8 hours. Whatever socket linked to Domoticz will do. No matter if it's 433MHz or e.g. Xiaomi.
HW:Raspberry PiB+,Pi3,PiB,RFLink,FA20RF,DCS-930L,DCS-935L,Clarus switches,RF Temp sensors,Owl Micro+,Mi Flora,Kerui,Yeelight,Xiaomi,Broadlink RMM3,Alexa
SF:Jessie,Dmtcz 3.8153,Logitech Media srv,PiCorePlayers,Dashticz,Max2Play,InfluxDB,Grafana,HABridge

miroslavpetrov
Posts: 28
Joined: Wednesday 03 February 2016 14:35
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Smart charger (Sonoff wi-fi smart switch)

Post by miroslavpetrov » Friday 13 October 2017 12:45

Please, read this article https://www.digitaltrends.com/mobile/ex ... s-battery/. The LiPo charging controller chip is smart enough. When the battery of the smartphone reaches a voltage of about 4.20V the charging controller stops charging the battery.
Controllers:
Domoticz on Raspberry Pi 3 with HomeBridge.
Fibaro HomeCenter 2
Xiaomi Gateway

Duci
Posts: 13
Joined: Friday 27 November 2015 11:15
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Smart charger (Sonoff wi-fi smart switch)

Post by Duci » Thursday 26 October 2017 11:55

I was actually thinking about doing something like this with a Sonoff. Not because of overcharging (I think that is no issue any more) but because of the really faint but -at night- easily audible sound that the chargers make when not charging any more.

My thought for a solution is to use a Sonoff with ESPeasy, and have my phone send out a command to Domoticz via Tasker when the phone is full. When it empties during the night I can also switch it on again right before I need to wake up.

r3wt3d
Posts: 28
Joined: Friday 10 November 2017 5:09
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Smart charger (Sonoff wi-fi smart switch)

Post by r3wt3d » Tuesday 14 November 2017 20:30

Check General board for SonOff controlling without FW reflashing.
If you can get battery info(maybe iFTTT supports?) then you can do what you want I think.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest