many thank both for the very helpful replies, I can turn/off the switch from HA , but its not happy with the automations.yaml
Nov 09 11:09:30 odroid systemd[1]: Started Home Assistant.
Nov 09 11:09:31 odroid hass[8287]: 2018-11-09 11:09:31 ERROR (SyncWorker_0) [homeassistant.util.yaml] while parsing a block collection
Nov 09 11:09:31 odroid hass[8287]: in “/home/odroid/.homeassistant/automations.yaml”, line 2, column 3
Nov 09 11:09:31 odroid hass[8287]: expected , but found ‘’
Nov 09 11:09:31 odroid hass[8287]: in “/home/odroid/.homeassistant/automations.yaml”, line 11, column 4
Nov 09 11:09:31 odroid hass[8287]: 2018-11-09 11:09:31 ERROR (MainThread) [homeassistant.bootstrap] Error loading /home/odroid/.homeassistant/configuration.yaml:
Nov 09 11:09:31 odroid hass[8287]: in “/home/odroid/.homeassistant/automations.yaml”, line 2, column 3
Nov 09 11:09:31 odroid hass[8287]: expected , but found ‘’
Nov 09 11:09:31 odroid hass[8287]: in “/home/odroid/.homeassistant/automations.yaml”, line 11, column 4
Nov 09 11:09:31 odroid hass[8287]: Config directory: /home/odroid/.homeassistant
automations.yaml :-
automation:
- alias: Turn On TP Link Switch
trigger:
platform: sun
event: sunset
offset: "-01:00:00"
action:
service: switch.turn_on
entity_id: switch.lr_lamp
- alias: Turn off TP Link Switch
trigger:
platform: sun
event: sunset
offset: "+01:30:00"
action:
service: switch.turn_off
entity_id: switch.lr_lamp
the config check shows problems line 2 col 3
but also a bigger problem, its now sulking and port 8123 is closed, so I can get in from the HA
GUI , its a headless unit so no local display, just ssh
Nmap scan report for odroidXU4 (192.168.1.82)
Host is up (0.0072s latency).
Not shown: 995 closed ports
PORT STATE SERVICE
22/tcp open ssh
5901/tcp open vnc-1
8081/tcp open blackice-icecap
8083/tcp open us-srv
8085/tcp open unknown
8080-8087 are camera ports
but 8123 is down , even after a couple of reboots
I dont run a firewall on this SBC as its behind the router which does have one
bit later:-
port 8123 now open again, shutdown the device and left it powered off for a few minutes,
very illogical there should be no difference between a shutdown and power off and a reboot.
but its still having problems with line 2 row 3 and line 11 row 3
which is “-” infront of alias
Configuration invalid
Invalid config for [automation]: [automation] is an invalid option for [automation]. Check: automation->automation. (See /home/odroid/.homeassistant/configuration.yaml, line 108). Please check the docs at https://home-assistant.io/components/automation/
line 108
group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
groups.yaml is empty, should there be some thing in it ?