Hi, I apologize, I am new to HA and not really familiar with yaml.
I would like to prepare configuration file where I would like to place some switches on main page (tab). Then I would like to create two tabs for each level where would be placed rooms with different switches and sensors. Something similar like https://home-assistant.io/demo/ with “Home” tab and tab “Rooms”.
I tried to prepare configuration.yaml with following content, but I can not get the desired result.
indent preformatted text by 4 spaces
homeassistant:
# Name of the location where Home Assistant is running
name: HomeAssistent1
# Location required to calculate the time the sun rises and sets
latitude: 46.3333
longitude: 14.3333
# Impacts weather/sunrise data
elevation: 504
# C for Celsius, F for Fahrenheit
temperature_unit: C
# Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
time_zone: Europe/Ljubljana
# Show links to resources in log and frontend
#introduction:
# Enables the frontend
#frontend:
http:
# Uncomment this to add a password (recommended!)
#api_password: password
# Checks for available updates
#updater:
# 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:
# Track the sun
sun:
# ################################################################################## #
# # If Connectivity is not reachable, obect in GUI is not shown
# ################################################################################## #
binary_sensor Door1:
platform: rest
resource: http://192.168.2.1/1
method: GET
name: "Door1"
sensor_class: opening
value_template: '{{ value_json.state }}'
switch OpenTheDoor:
platform: rest
resource: http://192.168.2.1/1
name: "OpenTheDoor"
body_on: "ON"
body_off: "OFF"
group:
default_view:
view: yes
entities:
- group.level1
- group.level2
Level1:
view: yes
name: "Level1"
entities:
- group.room1
- group.room2
Level2:
view: yes
name: "Level2"
entities:
- group.room3
- group.room4
Room1:
name: "Room1"
entities:
- switch.light1
Room2:
name: "Room2"
entities:
- switch.light1
Room3:
name: "Room3"
entities:
- switch.light2
Room4:
name: "Room4"
entities:
- switch.light2
switch Light1:
platform: rest
resource: http://192.168.2.1/1
name: "Light1"
body_on: "ON"
body_off: "OFF"
switch Light2:
platform: rest
resource: http://192.168.2.1/1
name: "Light2"
body_on: "ON"
body_off: "OFF"