This object is in archive! 

Get power consumption events

Lucas Condé shared this problem 6 years ago
Known

Hello, I'm trying to get the events related to the power consumption of a sensor I have but not having any luck with that. The idea is to use this information in another reporting tool I have since Zipato lacks this functionality.

I tried using the API for power consumption but it returns an error saying that "tariff not found". I'm not sure why the tariff is important here, but since I'm inputing the tariff is not clear why is not found.

I tried two attributes, one related to cumulative and other for current, neither of those worked.

https://my.zipato.com:443/zipato-web/v2/power-consumption/5d142e82-ffe8-44f9-add9-c35239ba7977?tariff=1&aggregation=HOUR

Also, what would be the possible aggregations that I could use? I tried MINUTES but got another exception.

Could you give me some tips on how to obtain this information?

Thank you in advance.

Replies (1)

photo
1

try this, not sure if it works only with current consumption, as I dont think it works with cumulative.

/Pnj248fP73UrrG1HZoWotoxbQEGAvz97V8klruk7aC+XQAAAABJRU5ErkJggg==

photo
1

Thank you, will try that.


Any idea how to use the API? I would like to connect the API directly to my report so I don´t need to create a rule.

photo
1

if you create this rule, then go to your api page, find the rule, and you may have a better understanding of how it works.

I'm guessing you want a constant feed on your power consumption that is recorded in an external spreadsheet, right? Try these 3 webpages for more information. They outline everything, just open in Chrome and use translate.

https://www.domotica-blog.nl/post/zipabox-mooie-grafieken

https://www.domotica-blog.nl/post/Zipabox-devices-verbinden-met-google-Drive

https://www.domotica-blog.nl/post/Zipabox-devices-verbinden-met-google-Drive

photo
1

Thank you, good material, I will check the scripts in detail.

photo
Leave a Comment
 
Attach a file