Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions examples/home_assistant/config.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# config.py
#
# ip address and port of your home assistant instance
HA_HOST = "http://192.168.1.24:8123"
#
# tokens are created in the home assistant interfacea interface - when logged in:
# Click bottom left on name
# -> Security tab
# -> scroll down
# -> Create token
HA_TOKEN = ""
#
# entities such as light.back_door must exist in your home assistant instance
# Settings
# -> Devices and services
# -> Entities tab
# -> Entity ID

# Light entities
LIGHT_ENTITIES = {
"back_door": {
"entity_id": "light.back_door",
"display_name": "Back Door Light 1"
},
"back_door_2": {
"entity_id": "light.back_door_2",
"display_name": "Back Door Light 2"
}
}

# Sensor entities
SENSORS = {
"motion": {
"entity_id": "binary_sensor.back_door_02_motion",
"display_name": "Back Door Motion"
},
"dark": {
"entity_id": "binary_sensor.back_door_02_is_dark",
"display_name": "Back Door Darkness"
},
"voltage": {
"entity_id": "sensor.back_door_02_voltage",
"display_name": "Back Door Voltage"
}
}

# Camera entities
CAMERAS = {
"back_door": {
"entity_id": "camera.back_door_02_high_resolution_channel",
"display_name": "Back Door Camera"
}
}
Loading