Hello all,
First of all. I have already carried out several automations via the HomeAssistant gui, which all work perfectly.
Now I would like to automate the switching of a wireless-controlled socket. I would like to measure the current power of the inverter and then always switch on the socket when the wattage is over 1000. Unfortunately, this does not work and I do not know why.
Here is an excerpt from the yaml file:
- id: '1652715115908'
alias: Switch on heating element
description: Switch on heating element above a certain wattage.
trigger:
- type: power
platform: device
device_id: eacd0eefa2cebd91aa6e70973f7f2322
entity_id: sensor.power_photovoltaics_fronius_power_flow_0_http_192_168_178_48
domain: sensor
above: 1
condition: []
action:
- type: turn_on
device_id: 41997139f8a4a92bc6b7279d754b3d4e
entity_id: switch.osram_plug_01_f6fb0f00_on_off
domain: switch
mode: single
Thanks in advance for your help.