Wow! That's odd that they just up and replaced your meter.
In any case, thanks for the info!
1380: if int(energyInput1, 16) > 0x7fffffff:
1386: energyInput1 = float(int(energyInput1, 16) | ~0xffffffff) * float(int(multiplier, 16)) / float(int(divisor, 16))
rhanson wrote:Line 1380: don't divide by 2, we need to compare the whole value to 2^31-1, not half of it .. I think you're compensating for the signed int twice in your mind
Also, on 1386: pretty sure you want ~ instead of - (the result is the same for 0xfff... but not any other number)
richy240 wrote:Is the value of the "Change in Current Load (kW)" property the same as the value of "energyInput1Delta" device state?
nsheldon wrote:Ha! No. Actually, I've seen some odd behavior when using the Change in Current Load as a condition as well. The apparent reason is that the Change in Current Load changes a few milliseconds after the Current Load, as the plugin goes through the XML. Indigo triggers on the Current Load and processes the conditions before the Change in Current Load value is populated into the device's state. I haven't decided on the best way to work around this. When I figure it out I'll let you know.
davidw wrote:Hello Nathan! I'm an SCE customer with a solar array, and just received my Eagle today. Thanks for the great plug in!
I tried to Use Advanced Pricing and put in my tiered rates, and got this error:
Energy EAGLE Error Error in plugin execution runConcurrentThread:
Traceback (most recent call last):
File "plugin.py", line 637, in runConcurrentThread
File "plugin.py", line 1583, in eagleSummationValues
<type 'exceptions.TypeError'>: can't compare datetime.datetime to unicode
Energy EAGLE Error plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
As promised in the final line, it repeats about every 10 seconds.
For now I've just turned off Advanced Pricing, but is this something I've configured incorrectly or...?
Users browsing this forum: No registered users and 3 guests