So I have set up 2 automations today, 1. to turn my wall socket on to charge my wallpanel/tablet if the battery is below 50% and turn off once the battery is above 80%.
not working…
alias: Wall Panel Charger Socket
description: Automatically toggle the charger socket based on tablet battery level
triggers:
- entity_id:
- sensor.wall_panel_table_battery_level
above: 80
id: Above
trigger: numeric_state
- trigger: numeric_state
entity_id:
- sensor.wall_panel_table_battery_level
below: 50
id: Below
conditions: []
actions:
- choose:
- conditions:
- condition: trigger
id:
- Below
sequence:
- action: switch.turn_on
metadata: {}
data: {}
target:
area_id: living_room
device_id: 108bd2897d5fdc2ba47e60381bc88b31
entity_id: switch.wall_panel_socket_socket
- conditions:
- condition: trigger
id:
- Above
sequence:
- action: switch.turn_off
metadata: {}
data: {}
target:
area_id: living_room
device_id: 108bd2897d5fdc2ba47e60381bc88b31
entity_id: switch.wall_panel_socket_socket
mode: single
- i have just brought a linknlink eMotion Human Radar Sensor… i have paired it to the linknlink app and I have installed the HACS intergration for LinknLink-Local and I now have the sensor on home assistant, I have made an automation to turn the living room light on if the sensor state goes from clear to detected and then to turn it off when state changes from detected to clear but again it doesn’t work.
alias: New Automation
description: ""
triggers:
- trigger: state
entity_id:
- binary_sensor.linknlink_e04b410085bc_motion
from: "off"
to: "on"
id: Detected
- trigger: state
entity_id:
- binary_sensor.linknlink_e04b410085bc_motion
from: "on"
to: "off"
id: Clear
conditions: []
actions:
- choose:
- conditions:
- condition: trigger
id:
- Detected
sequence:
- action: light.turn_on
metadata: {}
data:
kelvin: 6500
target:
area_id: living_room
device_id: f61f7068d9e1f01598cf87a971337a55
entity_id: light.living_room
- conditions:
- condition: trigger
id:
- Clear
sequence:
- action: light.turn_off
metadata: {}
data: {}
target:
area_id: living_room
device_id: f61f7068d9e1f01598cf87a971337a55
entity_id: light.living_room
mode: single