I run Domoticz on raspberry Pi with MQTT/Zigbee. I have several TS0121_plug Smart Plugs with can measure Voltage, Ampere, kWh etc. and can also be switch on/off by Domoticz and scripts with blocky.
I would like to stop charging my MacBook at 80% and start at charging at 10% (which is optimum charge according Apple)
The Macbook has a charging icon with shows the % state of the battery. Is there a way to let the Macbook "talk" with Domoticz to switch the Smart Plug on/off according the battery state?
MacBook Pro battery charging sensor
Moderator: leecollings
-
- Posts: 139
- Joined: Wednesday 12 August 2020 17:13
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2022.2
- Location: Fryslan
- Contact:
- waltervl
- Posts: 5361
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: MacBook Pro battery charging sensor
Not needed if you enable optimized charging on your macbook: https://support.apple.com/en-us/HT212049
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
- Posts: 139
- Joined: Wednesday 12 August 2020 17:13
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2022.2
- Location: Fryslan
- Contact:
Re: MacBook Pro battery charging sensor
I want My MacBook to be charged by "solar power". In my case I let the Smart Plug switch ON 2 hours after SUN Up and switched OFF 2 hours before SUN Down (this is a timer setting in Domoticz) .
My Macbook is 99% of the time connected to the charger, this means it is charged to 100% mostly around 12:00h (and sometimes earlier, depending on use day/evening before).
Mostely the battery is not at 10% (ideal discharge level according Apple) but al 40-60% and then it is charged again to 100% the next day and it keeps being charged until the Smartplug switches off 2h before sundown.
I would like to create a situation whereby the battery is discharged to max 10% and then charged till 80-100% and then stop charging/smartplug.
My former Macbook also had optimized charging, but after a year the battery use was limited to 2-3h and then it had to be charged again.
That is why I would like the communication between Macbook and Domoticz
My Macbook is 99% of the time connected to the charger, this means it is charged to 100% mostly around 12:00h (and sometimes earlier, depending on use day/evening before).
Mostely the battery is not at 10% (ideal discharge level according Apple) but al 40-60% and then it is charged again to 100% the next day and it keeps being charged until the Smartplug switches off 2h before sundown.
I would like to create a situation whereby the battery is discharged to max 10% and then charged till 80-100% and then stop charging/smartplug.
My former Macbook also had optimized charging, but after a year the battery use was limited to 2-3h and then it had to be charged again.
That is why I would like the communication between Macbook and Domoticz

-
- Posts: 524
- Joined: Sunday 01 November 2015 22:45
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2023.2
- Location: Twente
- Contact:
Re: MacBook Pro battery charging sensor
Here you go.
It stops charging at around 85%, sometimes at 60% and sometimes not at all but in the majority of cases it handles the charging procdure as it was supposed to.
All depends of the rate of decline in charging power.
I'm using it for batteries of mobile phone, bike, battery drill, garden mower, everything.
I'm thinking about using it for cutting of car battery charging as well. Depends of how the cars' app handles charging limits.
BTW The car charging procedure starts normally when enough solar energy is produced.
If you need further assistance, just ask.
It stops charging at around 85%, sometimes at 60% and sometimes not at all but in the majority of cases it handles the charging procdure as it was supposed to.
All depends of the rate of decline in charging power.
I'm using it for batteries of mobile phone, bike, battery drill, garden mower, everything.
I'm thinking about using it for cutting of car battery charging as well. Depends of how the cars' app handles charging limits.
BTW The car charging procedure starts normally when enough solar energy is produced.
If you need further assistance, just ask.
Bugs bug me.
Who is online
Users browsing this forum: No registered users and 0 guests