<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Automatic charging of notebook battery]]></title><description><![CDATA[<p dir="auto">I would like help to create an automation when the notebook battery is 95% charged, it turns off the smart socket sensor. And when it reaches 10% charge, it turns on the smart plug sensor.</p>
<p dir="auto">Has anyone done something like that?</p>
]]></description><link>https://www.triggercmd.com/forum/topic/1934/automatic-charging-of-notebook-battery</link><generator>RSS for Node</generator><lastBuildDate>Fri, 12 Jun 2026 01:46:49 GMT</lastBuildDate><atom:link href="https://www.triggercmd.com/forum/topic/1934.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 05 Jan 2022 16:05:17 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Automatic charging of notebook battery on Wed, 05 Jan 2022 22:38:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/13357">@paulo-vasco</a>, I downloaded this <a href="https://www.nirsoft.net/utils/battery_information_view.html" rel="nofollow ugc">BatteryInfoView</a> tool and ran it on my laptop with this command:</p>
<pre><code>d:\tools\BatteryInfoView.exe /scomma d:\tools\battery.csv
</code></pre>
<p dir="auto">This is the output I got:</p>
<pre><code>C:\Users\Russ&gt;type d:\tools\battery.csv
Description,Value
Battery Name,8850
Manufacture Name, Hewlett-Packard
Serial Number,Li4402A
Manufacture Date,
Power State,Discharging
Current Capacity (in %),89.0%
Current Capacity Value,"76,730 mWh"
Full Charged Capacity,"86,213 mWh"
Designed Capacity,"98,235 mWh"
Battery Health,87.8%
Voltage,"11,630 millivolts "
Charge/Discharge Rate ,"-37,551 milliwatts "
Chemistry ,Lithium Ion
Low Battery Capacity (1),"6,038 mWh"
Low Battery Capacity (2),"3,074 mWh"
Critical Bias,
Number of charge/discharge cycles,0
Battery Temperature,
Remaining battery time for the current activity (Estimated),
Full battery time for the current activity (Estimated),
Remaining time for charging the battery (Estimated),
Total  time for charging the battery (Estimated),
</code></pre>
<p dir="auto">You could write a script that loops once per minute and reads the <strong>Current Capacity (in <img src="https://www.triggercmd.com/forum/assets/plugins/nodebb-plugin-emoji/emoji/android/1f635.png?v=6sa9akdcpc2" class="not-responsive emoji emoji-android emoji--dizzy_face" style="height:23px;width:auto;vertical-align:middle" title="%)" alt="😵" /></strong> value from that output.</p>
<p dir="auto">The script could run one command that turns <strong>on</strong> your smart switch when the battery gets low, and another command that turns the smart switch back <strong>off</strong> when the battery is full.</p>
<p dir="auto">Those two commands could be <a href="https://www.triggercmd.com/forum/topic/196/tcmd-go-command-line-tool-is-available-now?_=1641422056543">tcmd</a> commands like this:</p>
<pre><code>d:\tools\tcmd.exe -t calculator -c russhp
</code></pre>
<p dir="auto">Instead of calculator you could make it something like switchon and switchoff, then use <a href="https://www.triggercmd.com/forum/topic/1844/run-an-alexa-routine-when-a-command-runs">this method</a> to run an Alexa routine that flips your switch on and off when you run those commands.</p>
]]></description><link>https://www.triggercmd.com/forum/post/5128</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/5128</guid><dc:creator><![CDATA[Russ]]></dc:creator><pubDate>Wed, 05 Jan 2022 22:38:26 GMT</pubDate></item></channel></rss>