I have a nexus 7 android tablet that I’m running Home Assistant app on. I’m very new to Home Assistant and have read other posts which illustrate how to automate this sort of scenario. Unfortunately I cannot get my configuration to trigger the automation. The action seems to work fine when I manually execute it. I’ve checked the logs, but they don’t show much. I did manage to pull the battery level from my device on the developer tool template section with the following command.
{{ states.sensor.nexus_7_battery_level.state }}
Here is the content from the automations.yaml file. If anyone could point me in the right direction, I would appreciate it. Thx.
- id: '1601317644370'
alias: Tablet Battery Charge on
trigger:
- below: '25'
entity_id: sensor.nexus_7_battery_level
platform: numeric_state
condition: []
action:
- data:
entity_id: switch.kitchen_outlet_82
service: switch.turn_on
entity_id: switch.kitchen_outlet_82
mode: single
- id: '1601317542916'
alias: Tablet Battery Charger off
trigger:
- above: '99'
entity_id: sensor.nexus_7_battery_level
platform: numeric_state
condition: []
action:
- data:
entity_id: switch.kitchen_outlet_82
service: switch.turn_off
entity_id: switch.kitchen_outlet_82
mode: single