Getting info from Tesla Gateway Battery State of Charge and Power status to run scene

Hi All, I am very new to Luup coding and was wondering if anyone could help with integration of my Tesla Powerwall with Vera so that I can get the battery state of charge value and power values every second based on which I can control certain loads, say switch on hot water cylinder when battery charge is above 95% and the solar is exporting to the grid. When I poll form the Tesla Gateway using the following link in a browser “https://Tesla_Gateway_IP_Address/api/system_status/soe” returns battery charge “https://Tesla_Gateway_IP_Address/api/meters/aggregates”, it returns power values. Anybody here tried something like this or could help me with this please?

You can probably resolve it very easily by using site sensor plugin. Search for it here in this forum.

1 Like

Thanks for that. Appreciate that! Will give it a shot and will update here. :slight_smile:

Any update on this? I am getting a powerwall installed this week and would like to be able to trigger scenes when I am on Battery Power (ie Grid town). Scenes to turn off certain lights, etc.

Thanks in advance.

© 2020 Vera Control Ltd., All Rights Reserved. Terms of Use | Privacy Policy