• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
TRIGGERcmd
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

Automatic charging of notebook battery

Windows
2
2
552
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P
    Paulo Vasco
    last edited by Jan 5, 2022, 4:05 PM

    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.

    Has anyone done something like that?

    R 1 Reply Last reply Jan 5, 2022, 10:35 PM Reply Quote 0
    • R
      Russ @Paulo Vasco
      last edited by Russ Jan 5, 2022, 10:38 PM Jan 5, 2022, 10:35 PM

      @paulo-vasco, I downloaded this BatteryInfoView tool and ran it on my laptop with this command:

      d:\tools\BatteryInfoView.exe /scomma d:\tools\battery.csv
      

      This is the output I got:

      C:\Users\Russ>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),
      

      You could write a script that loops once per minute and reads the Current Capacity (in 😵 value from that output.

      The script could run one command that turns on your smart switch when the battery gets low, and another command that turns the smart switch back off when the battery is full.

      Those two commands could be tcmd commands like this:

      d:\tools\tcmd.exe -t calculator -c russhp
      

      Instead of calculator you could make it something like switchon and switchoff, then use this method to run an Alexa routine that flips your switch on and off when you run those commands.

      Russell VanderMey

      1 Reply Last reply Reply Quote 0
      • R Russ referenced this topic on Jan 22, 2022, 12:27 AM
      • R Russ referenced this topic on Jan 22, 2022, 12:28 AM
      • R Russ referenced this topic on Jan 22, 2022, 12:29 AM
      • R Russ referenced this topic on Jan 22, 2022, 12:31 AM
      • R Russ referenced this topic on Jan 22, 2022, 12:32 AM
      • R Russ referenced this topic on Jan 22, 2022, 12:33 AM
      • R Russ referenced this topic on Jan 22, 2022, 12:33 AM
      • R Russ referenced this topic on Jan 22, 2022, 12:34 AM
      • R Russ referenced this topic on Jan 22, 2022, 3:26 PM
      1 out of 2
      • First post
        1/2
        Last post