mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-05-09 10:14:41 +00:00
migrate to zwavejs
This commit is contained in:
@@ -96,6 +96,8 @@ ffmpeg:
|
|||||||
# https://www.home-assistant.io/integrations/frontend
|
# https://www.home-assistant.io/integrations/frontend
|
||||||
frontend:
|
frontend:
|
||||||
themes: !include_dir_merge_named themes
|
themes: !include_dir_merge_named themes
|
||||||
|
extra_module_url:
|
||||||
|
- /hacsfiles/lovelace-card-mod/card-mod.js
|
||||||
|
|
||||||
# https://www.home-assistant.io/integrations/calendar.google
|
# https://www.home-assistant.io/integrations/calendar.google
|
||||||
# google:
|
# google:
|
||||||
@@ -153,8 +155,3 @@ media_extractor:
|
|||||||
|
|
||||||
# https://www.home-assistant.io/integrations/mobile_app
|
# https://www.home-assistant.io/integrations/mobile_app
|
||||||
mobile_app:
|
mobile_app:
|
||||||
|
|
||||||
# https://www.home-assistant.io/docs/z-wave/installation/
|
|
||||||
zwave:
|
|
||||||
usb_path: /dev/ttyACM0
|
|
||||||
# device_config: !include zwave_device_config.yaml
|
|
||||||
|
|||||||
@@ -96,7 +96,7 @@ cards:
|
|||||||
- type: "custom:mini-graph-card"
|
- type: "custom:mini-graph-card"
|
||||||
entities:
|
entities:
|
||||||
- sensor.living_room_radiator_temperature
|
- sensor.living_room_radiator_temperature
|
||||||
- sensor.trisensor_temperature
|
- sensor.multisensor_6_temperature
|
||||||
cache: false
|
cache: false
|
||||||
group_by: hour
|
group_by: hour
|
||||||
hours_to_show: 72
|
hours_to_show: 72
|
||||||
|
|||||||
@@ -47,14 +47,14 @@
|
|||||||
state_display: "[[[return entity.state.split(' ')[0] + ' pm2.5']]]"
|
state_display: "[[[return entity.state.split(' ')[0] + ' pm2.5']]]"
|
||||||
variables:
|
variables:
|
||||||
state_size: "11px"
|
state_size: "11px"
|
||||||
|
- type: horizontal-stack
|
||||||
|
cards:
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: v3_badge_icon
|
template: v3_badge_icon
|
||||||
entity: binary_sensor.bedroom_left_window
|
entity: binary_sensor.bedroom_left_window
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: v3_badge_icon
|
template: v3_badge_icon
|
||||||
entity: binary_sensor.bedroom_right_window
|
entity: binary_sensor.bedroom_right_window
|
||||||
- type: horizontal-stack
|
|
||||||
cards:
|
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: v3_badge_icon
|
template: v3_badge_icon
|
||||||
entity: binary_sensor.bedroom_door
|
entity: binary_sensor.bedroom_door
|
||||||
|
|||||||
@@ -34,9 +34,15 @@
|
|||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: v3_badge_humidity
|
template: v3_badge_humidity
|
||||||
entity: sensor.hallway_weather_humidity
|
entity: sensor.hallway_weather_humidity
|
||||||
|
- type: custom:button-card
|
||||||
|
template: v3_badge_icon
|
||||||
|
entity: group.hallway_motion
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: v3_badge_icon
|
template: v3_badge_icon
|
||||||
entity: binary_sensor.hallway_motion_occupancy
|
entity: binary_sensor.hallway_motion_occupancy
|
||||||
|
- type: custom:button-card
|
||||||
|
template: v3_badge_icon
|
||||||
|
entity: binary_sensor.trisensor_home_security_motion_detection
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: v3_badge_icon
|
template: v3_badge_icon
|
||||||
entity: binary_sensor.front_door
|
entity: binary_sensor.front_door
|
||||||
|
|||||||
@@ -67,13 +67,8 @@
|
|||||||
name: Speech
|
name: Speech
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: v3_button
|
template: v3_button
|
||||||
entity: input_select.bedroom_mode
|
entity: input_boolean.simulation_mode
|
||||||
name: Bedroom
|
name: Simulation
|
||||||
tap_action:
|
|
||||||
action: call-service
|
|
||||||
service: input_select.select_next
|
|
||||||
service_data:
|
|
||||||
entity_id: input_select.bedroom_mode
|
|
||||||
|
|
||||||
- type: horizontal-stack
|
- type: horizontal-stack
|
||||||
cards:
|
cards:
|
||||||
@@ -88,8 +83,14 @@
|
|||||||
name: Mercury
|
name: Mercury
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: v3_button
|
template: v3_button
|
||||||
entity: input_boolean.simulation_mode
|
entity: input_select.bedroom_mode
|
||||||
name: Simulation
|
name: Bedroom
|
||||||
|
tap_action:
|
||||||
|
action: call-service
|
||||||
|
service: input_select.select_next
|
||||||
|
service_data:
|
||||||
|
entity_id: input_select.bedroom_mode
|
||||||
|
|
||||||
- type: horizontal-stack
|
- type: horizontal-stack
|
||||||
cards:
|
cards:
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ binary_sensor.kitchen_motion_occupancy:
|
|||||||
entities:
|
entities:
|
||||||
- entity: sensor.kitchen_motion_illuminance
|
- entity: sensor.kitchen_motion_illuminance
|
||||||
|
|
||||||
binary_sensor.hallway_motion_occupancy:
|
group.hallway_motion:
|
||||||
title: Hallway motion
|
title: Hallway motion
|
||||||
card:
|
card:
|
||||||
type: vertical-stack
|
type: vertical-stack
|
||||||
@@ -177,7 +177,7 @@ sensor.active_motion_sensors:
|
|||||||
- margin-left: 8px
|
- margin-left: 8px
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: [v3_button, v3_popup_button]
|
template: [v3_button, v3_popup_button]
|
||||||
entity: binary_sensor.trisensor_motion
|
entity: binary_sensor.trisensor_home_security_motion_detection
|
||||||
name: Hallway
|
name: Hallway
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: [v3_button, v3_popup_button]
|
template: [v3_button, v3_popup_button]
|
||||||
@@ -633,8 +633,29 @@ vacuum.vacuum:
|
|||||||
subtitle: Cleaning time
|
subtitle: Cleaning time
|
||||||
- type: custom:xiaomi-vacuum-map-card
|
- type: custom:xiaomi-vacuum-map-card
|
||||||
entity: vacuum.vacuum
|
entity: vacuum.vacuum
|
||||||
camera_calibration: true
|
map_source:
|
||||||
map_camera: camera.xiaomi_cloud_map_extractor
|
camera: camera.xiaomi_cloud_map_extractor
|
||||||
|
calibration_source:
|
||||||
|
camera: true
|
||||||
|
map_locked: true
|
||||||
|
map_modes:
|
||||||
|
- template: vacuum_clean_zone
|
||||||
|
- template: vacuum_goto
|
||||||
|
- template: vacuum_follow_path
|
||||||
|
- template: vacuum_clean_segment
|
||||||
|
name: Rooms
|
||||||
|
predefined_selections:
|
||||||
|
- zones: [[25457, 25178], [27053, 25119], [27053, 27779], [24334, 27839], [24334, 25533], [25398, 25474]]
|
||||||
|
id: 1
|
||||||
|
label:
|
||||||
|
text: "Kitchen"
|
||||||
|
x: 25457
|
||||||
|
y: 25178
|
||||||
|
offset_y: 35
|
||||||
|
icon:
|
||||||
|
name: "mdi:chef-hat"
|
||||||
|
x: 25457
|
||||||
|
y: 25178
|
||||||
|
|
||||||
switch.tapo_bedroom:
|
switch.tapo_bedroom:
|
||||||
title: "Bedroom Camera"
|
title: "Bedroom Camera"
|
||||||
|
|||||||
@@ -2,12 +2,12 @@ automation:
|
|||||||
- alias: Wallmote · Living room · 1 · Tap · Toggle lights
|
- alias: Wallmote · Living room · 1 · Tap · Toggle lights
|
||||||
trigger:
|
trigger:
|
||||||
platform: event
|
platform: event
|
||||||
event_type: zwave.scene_activated
|
event_type: zwave_js_value_notification
|
||||||
event_data:
|
event_data:
|
||||||
entity_id: zwave.aeon_labs_zw130_wallmote_quad
|
|
||||||
node_id: 5
|
node_id: 5
|
||||||
scene_id: 1
|
value: "KeyPressed"
|
||||||
scene_data: 0
|
property: "scene"
|
||||||
|
property_key: "001"
|
||||||
action:
|
action:
|
||||||
- service: light.toggle
|
- service: light.toggle
|
||||||
entity_id: light.living_room
|
entity_id: light.living_room
|
||||||
@@ -15,12 +15,12 @@ automation:
|
|||||||
- alias: Wallmote · Living room · 1 · Toggle · PC Light
|
- alias: Wallmote · Living room · 1 · Toggle · PC Light
|
||||||
trigger:
|
trigger:
|
||||||
platform: event
|
platform: event
|
||||||
event_type: zwave.scene_activated
|
event_type: zwave_js_value_notification
|
||||||
event_data:
|
event_data:
|
||||||
entity_id: zwave.aeon_labs_zw130_wallmote_quad
|
|
||||||
node_id: 5
|
node_id: 5
|
||||||
scene_id: 1
|
value: "KeyReleased"
|
||||||
scene_data: 1
|
property: "scene"
|
||||||
|
property_key: "001"
|
||||||
action:
|
action:
|
||||||
- service: light.toggle
|
- service: light.toggle
|
||||||
entity_id: light.pc
|
entity_id: light.pc
|
||||||
@@ -28,12 +28,12 @@ automation:
|
|||||||
- alias: Wallmote · Living room · 2 · Tap · Toggle Music
|
- alias: Wallmote · Living room · 2 · Tap · Toggle Music
|
||||||
trigger:
|
trigger:
|
||||||
platform: event
|
platform: event
|
||||||
event_type: zwave.scene_activated
|
event_type: zwave_js_value_notification
|
||||||
event_data:
|
event_data:
|
||||||
entity_id: zwave.aeon_labs_zw130_wallmote_quad
|
|
||||||
node_id: 5
|
node_id: 5
|
||||||
scene_id: 2
|
value: "KeyPressed"
|
||||||
scene_data: 0
|
property: "scene"
|
||||||
|
property_key: "002"
|
||||||
action:
|
action:
|
||||||
- service: media_player.media_play_pause
|
- service: media_player.media_play_pause
|
||||||
entity_id: media_player.living_room
|
entity_id: media_player.living_room
|
||||||
@@ -41,24 +41,23 @@ automation:
|
|||||||
- alias: Wallmote · Living room · 2 · Hold · Play music
|
- alias: Wallmote · Living room · 2 · Hold · Play music
|
||||||
trigger:
|
trigger:
|
||||||
platform: event
|
platform: event
|
||||||
event_type: zwave.scene_activated
|
event_type: zwave_js_value_notification
|
||||||
event_data:
|
event_data:
|
||||||
entity_id: zwave.aeon_labs_zw130_wallmote_quad
|
|
||||||
node_id: 5
|
node_id: 5
|
||||||
scene_id: 2
|
value: "KeyReleased"
|
||||||
scene_data: 1
|
property: "scene"
|
||||||
|
property_key: "002"
|
||||||
action:
|
action:
|
||||||
- service: script.music_play
|
- service: script.music_play
|
||||||
|
|
||||||
- alias: Wallmote · Living room · 3 · Tap · Toggle Main lights
|
- alias: Wallmote · Living room · 3 · Tap · Toggle Main lights
|
||||||
trigger:
|
trigger:
|
||||||
platform: event
|
platform: event
|
||||||
event_type: zwave.scene_activated
|
event_type: zwave_js_value_notification
|
||||||
event_data:
|
event_data:
|
||||||
entity_id: zwave.aeon_labs_zw130_wallmote_quad
|
|
||||||
node_id: 5
|
node_id: 5
|
||||||
scene_id: 3
|
value: "KeyPressed"
|
||||||
scene_data: 0
|
property_key: "003"
|
||||||
action:
|
action:
|
||||||
- service: light.toggle
|
- service: light.toggle
|
||||||
entity_id:
|
entity_id:
|
||||||
@@ -68,12 +67,11 @@ automation:
|
|||||||
- alias: Wallmote · Living room · 3 · Hold · Toggle Ambient lights
|
- alias: Wallmote · Living room · 3 · Hold · Toggle Ambient lights
|
||||||
trigger:
|
trigger:
|
||||||
platform: event
|
platform: event
|
||||||
event_type: zwave.scene_activated
|
event_type: zwave_js_value_notification
|
||||||
event_data:
|
event_data:
|
||||||
entity_id: zwave.aeon_labs_zw130_wallmote_quad
|
|
||||||
node_id: 5
|
node_id: 5
|
||||||
scene_id: 3
|
value: "KeyReleased"
|
||||||
scene_data: 1
|
property_key: "003"
|
||||||
action:
|
action:
|
||||||
- service: light.toggle
|
- service: light.toggle
|
||||||
entity_id: light.living_room_ambient
|
entity_id: light.living_room_ambient
|
||||||
@@ -81,23 +79,21 @@ automation:
|
|||||||
- alias: Wallmote · Living room · 4 · Tap · Toggle AC
|
- alias: Wallmote · Living room · 4 · Tap · Toggle AC
|
||||||
trigger:
|
trigger:
|
||||||
platform: event
|
platform: event
|
||||||
event_type: zwave.scene_activated
|
event_type: zwave_js_value_notification
|
||||||
event_data:
|
event_data:
|
||||||
entity_id: zwave.aeon_labs_zw130_wallmote_quad
|
|
||||||
node_id: 5
|
node_id: 5
|
||||||
scene_id: 4
|
value: "KeyPressed"
|
||||||
scene_data: 0
|
property_key: "004"
|
||||||
action:
|
action:
|
||||||
- service: script.toshiba_ac_toggle
|
- service: script.toshiba_ac_toggle
|
||||||
|
|
||||||
- alias: Wallmote · Living room · 4 · Hold · Toggle Cover
|
- alias: Wallmote · Living room · 4 · Hold · Toggle Cover
|
||||||
trigger:
|
trigger:
|
||||||
platform: event
|
platform: event
|
||||||
event_type: zwave.scene_activated
|
event_type: zwave_js_value_notification
|
||||||
event_data:
|
event_data:
|
||||||
entity_id: zwave.aeon_labs_zw130_wallmote_quad
|
|
||||||
node_id: 5
|
node_id: 5
|
||||||
scene_id: 4
|
value: "KeyReleased"
|
||||||
scene_data: 1
|
property_key: "004"
|
||||||
action:
|
action:
|
||||||
- service: script.toggle_living_room_cover
|
- service: script.toggle_living_room_cover
|
||||||
|
|||||||
@@ -59,10 +59,6 @@ binary_sensor:
|
|||||||
{% else %} mdi:account-off-outline
|
{% else %} mdi:account-off-outline
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
trisensor_motion:
|
|
||||||
friendly_name: TriSensor motion
|
|
||||||
device_class: motion
|
|
||||||
value_template: "{{ is_state('sensor.trisensor_burglar', '8') }}"
|
|
||||||
|
|
||||||
multisensor_motion:
|
multisensor_motion:
|
||||||
friendly_name: MultiSensor motion
|
friendly_name: MultiSensor motion
|
||||||
|
|||||||
@@ -5,13 +5,13 @@ group:
|
|||||||
- binary_sensor.hallway_motion_occupancy
|
- binary_sensor.hallway_motion_occupancy
|
||||||
- binary_sensor.kitchen_motion_occupancy
|
- binary_sensor.kitchen_motion_occupancy
|
||||||
- binary_sensor.multisensor_motion
|
- binary_sensor.multisensor_motion
|
||||||
- binary_sensor.trisensor_motion
|
- binary_sensor.trisensor_home_security_motion_detection
|
||||||
|
|
||||||
hallway_motion:
|
hallway_motion:
|
||||||
name: Hallway Motion
|
name: Hallway Motion
|
||||||
entities:
|
entities:
|
||||||
- binary_sensor.hallway_motion_occupancy
|
- binary_sensor.hallway_motion_occupancy
|
||||||
- binary_sensor.trisensor_motion
|
- binary_sensor.trisensor_home_security_motion_detection
|
||||||
|
|
||||||
binary_sensor:
|
binary_sensor:
|
||||||
- platform: mqtt
|
- platform: mqtt
|
||||||
|
|||||||
Reference in New Issue
Block a user