muurman
(Erik Muurman)
1
sequence:
- condition: numeric_state
entity_id: sensor.growattbattsetchargevalue
above: 0
- device_id: 2aafc2af7ef24b4def123d59e3189f33
domain: number
entity_id: d301c174ad45eeb3c4b803f9f440ec0b
type: set_value
value: "{{states('sensor.growattbattsetchargevalue')}}"
alias: GrowattBattCharge
description: ""
sensor.growattbattsetchargevalue is a calculated value ( done throug an template & sensor entry in configuration.yaml
When this value is above 0 i want to : set the charge value for the battery connected to my growatt inverter. But how to do this ?
muurman
(Erik Muurman)
2
solved:
alias: GrowattSetBattDischargeRate
description: ""
triggers:
- trigger: time_pattern
hours: "*"
minutes: "*"
seconds: /10
- trigger: numeric_state
entity_id:
- sensor.growattbattdischargeprocent
above: 0
enabled: true
conditions: []
actions:
- action: number.set_value
metadata: {}
data:
value: "{{ states('sensor.growattbattdischargeprocent')|float(0) +1 }}"
target:
entity_id: number.growatt_grid_first_discharge_rate
mode: single
Nick4
(Nick)
3
Hi Erik, good you solved it yourself!
Please take the time to mark the solution as the answer, you do that by selecting the three dots under the post:

Then select the check box:

By doing so:
- this thread can be useful to other users as well (this thread comes up as solution when starting a thread which is similar to yours).
- this prevents that someone else steps in trying to help
Thanks for giving back to the community! 