Help to set set_output_power ? #141
Replies: 3 comments 4 replies
|
You cannot set the output directly, but you must provide the proper SB schedule structure with the minimum fields. I use the helper methods set_*_home_load which I build for manipulating the schedule, either for the current slot or for inserting/deleting slots. new_schedule = await myapi.set_sb2_home_load(
siteId=siteId,
deviceSn=deviceSn,
usage_mode=None,
preset=250,
#insert_slot=apitypes.Solarbank2Timeslot(
# start_time=datetime.strptime("16:00", "%H:%M"),
# end_time=datetime.strptime("19:00", "%H:%M"),
# appliance_load=400,
# weekdays=None,
#),
#test_schedule=scheduleSB2,
)
if new_schedule:
common.print_schedule(new_schedule)
_out(new_schedule)A prereq for this is work is that you run at least the update_sites() method first to populate the cache. You must also use the owner account for this to work. Question: Why are you using the Api directly to modify the output? I think that is too complicated since you have to experience the full Api structure and functionality again. Prepare for many hours of testing and learning.... |
|
Can I use the
Well long story short: I've 2 e1600 v1 batteries (with 2x2 PV my original system) feeding a e1600 plus with smartmeter (recent upgrade of my system). EDIT: and I think I will port the needed endpoints on an arduino device so I want to use "pure" endpoints. Or should I use https://docs.arduino.cc/micropython/ ?
that's my favorite lol I've read somewhere that anker should do something to implement this case |
not an official API but something to make it work togeteher (v1 and v2) https://www.ankersolix.com/fr/products/a17c13z1?o_1=1&o_2=1&o_2_p=3&o_3=2&o_3_v=3 says
(In Q4 2024, we expect that Solarbank 2 E1600 Pro (A17C1) and Solarbank E1600 (A17C0) can be used together, as can Solarbank 2 E1600 Plus (A17C3) and Solarbank E1600 (A17C0).) I don't know what it means |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi could someone provide an example to set set_output_power with the API
thx
EDIT: this battery is in a power plan with some power schedule, where can I find the schedule rules ?
siteid is set with a the value from the test.py
tried this but get errors
error
OK: found a comment -> works only for site owners
I've set up another account for the API... I've to use the main account...
All reactions