Closed aviadoffer closed 1 month ago
My car's not set up right now to test locally, but I believe the charging_rate should be the 15 amps (the max it'll do, as if you adjusted the slider) and max_charging_rate is the maximum set by the breaker (48 amps when on a 60 amp breaker). The actual charging rate is by asking for the device usage and passing just the gid for the charger, something like below. There's only one channel and only one entry in the dictionary, so you can omit the loops. If you want the most immediate value you can grab the seconds scale, just don't grab it too often (and scale the usage appropriately).
usage_dict = vue.get_device_list_usage('62626', datetime.datetime.now(datetime.timezone.utc), Scale.MINUTE.value, Unit.AMPHOURS.value)
for (gid, usageDevice) in usage_dict.items():
for (channelNum, usageChannel) in usageDevice.channels.items():
scaledUsage = usageChannel.usage * 60 # convert Ah used over the minute to average Amps
print(f'{gid} - {channelNum} - {usageChannel.name} - {scaledUsage}A')
Awesome, I will take a look
that worked perfectly! you the man!! thanks much for this amazing project
Ignore the 12amp showing, thats an app behind issue.