#So towel would have some method that
1 messages · Page 1 of 1 (latest)
but that wouldn't really work in that case
growatt_inverter_mode is entirely controlled by that automation
when the selection changes is calls rest_command
Then just call an automation that does your "poll" every 10 seconds?
Simple time pattern trigger
mhm, I think I'm still stuck unfortunately; I thought of the time pattern trigger but it's not enough as I don't know how I could get the JSON body and use that to update the selection
Well, you need an entity that gets that "body"
Then you can use #templates-archived to parse it
I don't really know what to ask actually
You need a RESTful sensor that gets your body
ah, and so when the restful sensor changes it updates the selection?
well, i'd need an automation for that
but is that basically it
Should be, yes
looks like it works, thank you
Sorry about the question but is there a way I could have it ignore values if the API returned something above 3?
sensor:
- platform: rest
resource: "http://127.0.0.1:5782/inverter?..."
method: GET
name: growatt_output_mode
value_template: "{{ value_json.value }}"
It does sometimes when the modbus connection is broken