#So towel would have some method that

1 messages · Page 1 of 1 (latest)

placid galleon
#

Well, the integration that provides that entity

#

sensor.towel is just an entity

zinc elm
#

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

placid galleon
#

Then just call an automation that does your "poll" every 10 seconds?

#

Simple time pattern trigger

zinc elm
#

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

placid galleon
#

Well, you need an entity that gets that "body"

zinc elm
#

I don't really know what to ask actually

placid galleon
#

You need a RESTful sensor that gets your body

zinc elm
#

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

placid galleon
#

Should be, yes

zinc elm
#

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