kuro8989
(Kuro8989)
October 21, 2019, 3:30am
1
LightDownstairs
- name: Downstairs
entities:
- light.1f_kitchen_stove_east
- light.1f_lc_living_room_south
- light.1f_lc_living_room_east
- light.1f_lc_living_room_hallway
- light.1f_livingroom_3_head_lamp_bot
- light.1f_livingroom_3_head_lamp_top
- light.1f_livingroom_3_head_lamp_mid
LightUpstairs
- name: Upstairs
entities:
- light.2f_bedroom_lamp
- light.2f_bedroom_lamp_mid
- light.2f_bedroom_lamp_top
- light.2f_bedroom_mini_lamp
- light.2f_lc_bedroom_bay_window
- light.2f_lc_living_room_east
- light.2f_lc_living_room_se
- light.2f_lc_work_area_north
- light.2f_work_overhead_area
Getting this error.
General Errors:
- Error loading /home/homeassistant/.homeassistant/configuration.yaml: mapping values are not allowed here
in “/home/homeassistant/.homeassistant/configuration.yaml”, line 6, column 11
Are the hyphens in the right place? Only thing Ican think of is wrong but every example I’ve seen online seems to follow this format.
tom_l
October 21, 2019, 4:04am
2
Entities should be inline with name. There should be no dash in front of name.
Look at the examples:
kuro8989
(Kuro8989)
October 21, 2019, 6:09am
3
Oooof. Man that’s an oversight. Thanks!
So I fixed that and now I’m getting this error code
group:
- Invalid config for [group]: value should be a string for dictionary value @ data['group']['lightdownstairs']['entities']. Got None
value should be a string for dictionary value @ data['group']['lightupstairs']['entities']. Got None. (See /home/homeassistant/.homeassistant/configuration.yaml, line 4). Please check the docs at https://home-assistant.io/components/group/
- default_config: ?
group: [source /home/homeassistant/.homeassistant/configuration.yaml:4]
lightdownstairs: [source /home/homeassistant/.homeassistant/configuration.yaml:5]
- entities: [source /home/homeassistant/.homeassistant/configuration.yaml:7]
- light.1f_kitchen_stove_east
- light.1f_lc_living_room_south
- light.1f_lc_living_room_east
- light.1f_lc_living_room_hallway
- light.1f_livingroom_3_head_lamp_bot
- light.1f_livingroom_3_head_lamp_top
- light.1f_livingroom_3_head_lamp_mid
name: Downstairs
lightupstairs: [source /home/homeassistant/.homeassistant/configuration.yaml:16]
- entities: [source /home/homeassistant/.homeassistant/configuration.yaml:18]
- light.2f_bedroom_lamp
- light.2f_bedroom_lamp_mid
- light.2f_bedroom_lamp_top
- light.2f_bedroom_mini_lamp
- light.2f_lc_bedroom_bay_window
- light.2f_lc_living_room_east
- light.2f_lc_living_room_se
- light.2f_lc_work_area_north
- light.2f_work_overhead_area
name: Upstairs
script: ?
Here’s the modified script compensating for the misaligned entities
tom_l
October 21, 2019, 6:26am
4
That still looks nothing like the example.
kuro8989
(Kuro8989)
October 21, 2019, 6:35am
5
Whoops. Pasted the error message when I meant to paste the code.
group:
lightdownstairs:
- name: Downstairs
entities:
- light.1f_kitchen_stove_east
- light.1f_lc_living_room_south
- light.1f_lc_living_room_east
- light.1f_lc_living_room_hallway
- light.1f_livingroom_3_head_lamp_bot
- light.1f_livingroom_3_head_lamp_top
- light.1f_livingroom_3_head_lamp_mid
lightupstairs:
- name: Upstairs
entities:
- light.2f_bedroom_lamp
- light.2f_bedroom_lamp_mid
- light.2f_bedroom_lamp_top
- light.2f_bedroom_mini_lamp
- light.2f_lc_bedroom_bay_window
- light.2f_lc_living_room_east
- light.2f_lc_living_room_se
- light.2f_lc_work_area_north
- light.2f_work_overhead_area
That’s the edited code. The above post is the error code
finity
October 21, 2019, 7:03am
6
I guess I’ll try…
Here is yours:
group:
lightdownstairs:
- name: Downstairs
entities:
- light.1f_kitchen_stove_east
- light.1f_lc_living_room_south
- light.1f_lc_living_room_east
.
.
lightupstairs:
- name: Upstairs
entities:
- light.2f_bedroom_lamp
- light.2f_bedroom_lamp_mid
..
..
Here is how it looks in the example ion the docs that Tom linked to above:
group:
kitchen:
name: Kitchen
entities:
- switch.kitchen_pin_3
climate:
name: Climate
entities:
- sensor.bedroom_temp
- sensor.porch_temp
hopefully you can see the difference.
kuro8989
(Kuro8989)
October 21, 2019, 11:22pm
7
Yes! I do.
Thanks so much. Fixed!
Sorry, I’ve been known to rush thing when I"m excited about new projects. Need to remember to slow down…