#hi all can someone help me to configure
1 messages ยท Page 1 of 1 (latest)
alias: UPS36V Riaggancio per Energia disponibile
description: Riaggancia rete e iizia ricarica
trigger:
- platform: numeric_state
entity_id:- sensor.quadro_esp_batteria_inverter_in_watt
above: 180
condition:
- sensor.quadro_esp_batteria_inverter_in_watt
- type: is_battery_level
condition: device
device_id: a50491cff8da39933add5902e2746ad5
entity_id: e45a823c0870af7e6e8afbf7109ef1e7
domain: sensor
above: 0
below: 90 - type: is_battery_level
condition: device
device_id: eff9cb58bc64243e4219d8e353d026ef
entity_id: 8ae2c536504087a1d9ced249b52ad313
domain: sensor
above: 55
action: - if:
- type: is_power
condition: device
device_id: eff9cb58bc64243e4219d8e353d026ef
entity_id: 450aa482985e62fd7777f2e14bd90073
domain: sensor
above: 180
below: 600
then: - type: turn_on
device_id: a50491cff8da39933add5902e2746ad5
entity_id: cc5b7d22db25cb62024ebaa06f055f03
domain: switch
else: - if:
- type: is_power
condition: device
device_id: eff9cb58bc64243e4219d8e353d026ef
entity_id: 450aa482985e62fd7777f2e14bd90073
domain: sensor
above: 600
then: - type: turn_on
device_id: a50491cff8da39933add5902e2746ad5
entity_id: d41376e7ae7a23f41beff807d1eedd87
domain: switch
mode: restart
- type: is_power
- type: is_power
the problem is that it never trigger so it does not execute
can you set the state for sensor.quadro_esp_batteria_inverter_in_watt to something above 180 manually in Developer Tools and see if that triggers a run of your automation?
but did it trigger when the value went above 180
it will not retrigger if the value doesn't drop below your trigger value first
what do you mean?
in developer tools you can set the state to 0 too, then if the sensor updates and goes above 180 again it will trigger your automation too
i mean a statement like:
if the sensor is above a certain value trigger
not a simple treshold
not with a numeric_state. state triggers are all threshold based
if you want that just use a regular state trigger with no parameters, it will then trigger on any an all state changes
trigger:
- platform: state
entity_id:
- media_player.oled
This will trigger on all state changes of in this case a media_player entity. Just substitute it with your sensor
ty i try ๐
you will then of course need to put the 'above 180' in a regular condition or in a choose, but that's up to you