I have created an input boolean switch to toggle some LED lights on and off which are controlled by my Logitech Harmony Elite. I had these working before i customized them and added them to a group to tidy them up… i cant see what ive done wrong if someone could please help
Configuration File
homeassistant:
# Name of the location where Home Assistant is running
name: Home
# Location required to calculate the time the sun rises and sets
latitude: -38.108724
longitude: 145.198159
# Impacts weather/sunrise data (altitude above sea level in meters)
elevation: 0
# metric for Metric, imperial for Imperial
unit_system: metric
# Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
time_zone: Australia/Melbourne
# Customization file
customize: !include customize.yaml
# Show links to resources in log and frontend
#introduction:
# Enables the frontend
frontend:
# Enables configuration UI
config:
http:
# Secrets are defined in the file secrets.yaml
# api_password: !secret http_password
# Uncomment this if you are using SSL/TLS, running in Docker container, etc.
# base_url: example.duckdns.org:8123
# Checks for available updates
# Note: This component will send some information about your system to
# the developers to assist with development of Home Assistant.
# For more information, please see:
# https://home-assistant.io/blog/2016/10/25/explaining-the-updater/
updater:
# Optional, allows Home Assistant developers to focus on popular components.
# include_used_components: true
# Discover some devices automatically
discovery:
# Allows you to issue voice commands from the frontend in enabled browsers
conversation:
# Enables support for tracking state changes over time
history:
# View all events in a logbook
logbook:
# Enables a map showing the location of tracked devices
map:
# Track the sun
sun:
# Weather prediction
sensor:
- platform: yr
# Text to speech
tts:
- platform: google
# Cloud
cloud:
input_boolean:
lightonoff:
name: Lounge_Room_Light
#group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
group:
# default_view:
# name: Home
# view: yes
# entities:
# - group.server
# - remote.Harmony_Hub
# - group.lights
# - group.people
# - media_player.portable
server:
name: Server
icon: mdi:desktop-classic
view: no
entities:
- switch.Wake_Up_The_Server
people:
name: Family
icon: mdi:account-multiple
view: no
entities:
- group.adam
- device_tracker.f4f5db1061ab
- device_tracker.Beata
lounge:
name: Lounge Room
view: yes
entities:
- remote.Harmony_Hub
- media_player.kodi
- media_player.emby
- group.lights
lights:
name: Lighting
icon: mdi:lightbulb
view: no
entities:
# - script.lounge_lights_on
# - script.lounge_lights_off
# - script.blue
- input_boolean.lightonoff
adam:
name: Adam
icon: mdi:mdi:emoticon
view: no
entities:
- device_tracker.dc415f90905a
- device_tracker.eyefone
media:
name: Media Players
view: yes
entities:
- media_player.emby__kodi__lounge_2
- media_player.garage
- media_player.cinema_speaker
- media_player.living_room
- media_player.portable
- media_player.sebus
- media_player.emby__androidtv__miboxlivingroom
- media_player.emby__androidtv__miboxsebus
remote:
- platform: harmony
name: Harmony_Hub
host: 10.168.1.140
switch:
- platform: wake_on_lan
mac_address: "90-e2-ba-93-35-fe"
name: Wake Up The Server
switch 2:
- platform: template
switches:
lights_onoff:
value_template: "{{ is_state('input_boolean.lightonoff', 'on') }}"
turn_on:
service: script.turn_on
entity_id: script.lounge_lights_on
turn_off:
service: script.turn_on
entity_id: script.lounge_lights_off
zone:
name: Home
latitude: -38.108724
longitude: 145.198159
radius: 50
icon: mdi:home
zone 2:
name: PTC HQ
latitude: -38.086389
longitude: 145.181307
radius: 50
icon: mdi:weight
zone 3:
name: Technicalities Office
latitude: -37.949631
longitude: 145.078863
radius: 50
icon: mdi:worker
device_tracker:
- platform: nmap_tracker
hosts: 192.168.1.50-52
home_interval: 10
exclude:
- 192.168.1.26
- 192.168.1.100
- 192.168.1.188
device_tracker 2:
- platform: icloud
username: [email protected]
password: ###########################
account_name: Adam's iPhone
media_player:
- platform: emby
host: 192.168.1.100
api_key: "############################"
auto_hide: true
- platform: kodi
host: 192.168.1.101
port: 80
username: kodi
password: kodi
sensor 2:
- platform: bom
station: IDV60901.94871
name: Frankston
monitored_conditions:
- apparent_t
- air_temp
- rain_trace
- wind_spd_kmh
Customize.yaml
input_boolean.lightonoff:
friendly_name: 'Lounge Room Light'
hidden: false
icon: 'mdi:lightbulb'