does anyone know how to select option in this python code?
this works to call services fine . .
self.call_service_template("discharge_stop_service", service_data_stop, domain="discharge"):
but if you want to change the option of an entity how shoud it be structured?
like this?
self.call_service_template("select.select_option", {
"target": {"entity_id": "select.batteries_working_mode"},
"data": {"option": "maximise_self_consumption"}
}, domain="select")
an example of a working select option would be amazing if anyone can help