Here is what the Automation shoud do:
If a Webhook is triggerd, it should wait 5min, check if the Power Usage is below 3 Watt and then turn the Wall Switch off (and if its possible, if power usage is above 3 Watt send a Message)
Problem is that I have Problem with reading the Value from Entity
Entity: sensor.fibaro_system_fgwpef_wall_plug_exporting
Attributes:
node_id: 9
value_index: 32
value_instance: 1
value_id: 72057594193936896
power_consumption: 2.6
unit_of_measurement:
friendly_name: nas Exporting
I have played a bit around, there is what I have
- id: '1559640460411'
alias: server
trigger:
- platform: webhook
webhook_id: test
condition: []
action:
- delay: 00:05:00
- condition: state
entity_id: sensor.fibaro_system_fgwpef_wall_plug_exporting
state: ((float(sensor.fibaro_system_fgwpef_wall_plug_exportin.power_consumption)) - (float(3))) | round(2)