I need help with my Automations please

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

  1. 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

There is a blueprint for that.
Wallpanel Battery Management - Blueprints Exchange - Home Assistant Community

Make sure you understand How triggers work.

You do not need, and likely don’t want, to use all of those targets at once. Use the type of target that meets your needs. For a switch.turn_off action an Area target will turn off all switch entities in the Area, a Device target will cause all switch entities in the device to turn off, while a Entity target will specifically turn off the entities selected. When multiple targets types are used, all of them are acted on.

Lastly, kelvin has been deprecated.

Light - light.turn_on Action documentation

Thank you :grinning:

Thank you all sorted, im still new to all of this and trying to get my head around it all lol