I’ve been diving into the world of smart home automation lately, and I’m absolutely thrilled with how much I’ve been able to achieve so far. One of my latest projects has been setting up a system to monitor my phone’s battery level using Hubitat. The goal here is pretty straightforward: I want to get an alert if my phone’s battery drops below a certain threshold when I wake up, which would indicate that it didn’t charge properly overnight. This way, I can make sure to charge it while I get ready in the morning or on my way to work.
To tackle this, I decided to use a virtual device with the Virtual Omni Sensor Plus. The plan was to send HTTP requests from Tasker to update the battery level, but I’ve hit a bit of a snag in figuring out the exact command needed. I’ve tried several variations, but none seem to work for setting the battery level directly. For example, I’ve attempted commands like:
192.168.100.241/apps/api/70/devices/606/setBattery=50?access_token={hidden}
192.168.100.241/apps/api/70/devices/606/setBattery/50?access_token={hidden}
192.168.100.241/apps/api/70/devices/606/battery=50?access_token={hidden}
192.168.100.241/apps/api/70/devices/606/battery/50?access_token={hidden}
While these haven’t worked for setting the battery level, I can confirm that the connection itself is functioning correctly. I’ve successfully tested commands like:
192.168.100.241/apps/api/70/devices/606/batteryStatusCharging?access_token={hidden}
192.168.100.241/apps/api/70/devices/606/batteryStatusDischarging?access_token={hidden}
This tells me that the API is responding, but I’m just not getting the right syntax for the battery level update. If anyone out there has experience with this or knows what I might be missing, I’d be incredibly grateful for any insights or suggestions. It’s been a fun challenge so far, and I’m really looking forward to getting this working smoothly!
Cheers,
[Your Name]