I want to minimize my access to the EmporiaVue mothership. I have 16 or circuits that I monitor with my EmporiaVue but for most of my API stuff, I only care about:
Main 1,2,3 - Net Usage
and
one of my circuits that I call Solar Battery.
I don't care about the other 15 circuits I monitor.
I do:
now = datetime.datetime.now(datetime.timezone(datetime.timedelta(hours=-5))) # This is my timezone, yours may vary
usageDict = vue.get_device_list_usage(device_gids, now, Scale.SECOND.value, Unit.KWH.value)
for (gid, usageDevice) in usageDict.items():
for (channelNum, usageChannel) in usageDevice.channels.items():
process the data and print out the results.
and that gets data for ALL of my 16 circuits. Is there a way to JUST get data for 2 things?
Main (a.k.a. Net Usage)
Solar Battery
in order to get less data from the API.
or should I not worry about the extra data?
I want to pull this data ( Main and Solar Battery ) every couple of minutes. I have stuff that I need to turn on and off based on the values from Main and Solar Battery.
I want to minimize my access to the EmporiaVue mothership. I have 16 or circuits that I monitor with my EmporiaVue but for most of my API stuff, I only care about:
Main 1,2,3 - Net Usage
and
one of my circuits that I call Solar Battery.
I don't care about the other 15 circuits I monitor.
I do:
and that gets data for ALL of my 16 circuits. Is there a way to JUST get data for 2 things?
Main (a.k.a. Net Usage)
Solar Battery
in order to get less data from the API.
or should I not worry about the extra data?
I want to pull this data ( Main and Solar Battery ) every couple of minutes. I have stuff that I need to turn on and off based on the values from Main and Solar Battery.