Removed shinobi, replaced deconz with the integrated system, added replink custom component
This commit is contained in:
parent
e3d1217224
commit
68744695dd
@ -18,6 +18,7 @@
|
|||||||
- switch.harmony_denon_power
|
- switch.harmony_denon_power
|
||||||
- switch.desktop_wol
|
- switch.desktop_wol
|
||||||
- switch.wallboard_display
|
- switch.wallboard_display
|
||||||
|
- switch.tplink1
|
||||||
# include_domains:
|
# include_domains:
|
||||||
# - switch
|
# - switch
|
||||||
# exclude_entities:
|
# exclude_entities:
|
||||||
@ -66,4 +67,7 @@
|
|||||||
switch.wallboard_display:
|
switch.wallboard_display:
|
||||||
name: Display
|
name: Display
|
||||||
description: Wallboard Display
|
description: Wallboard Display
|
||||||
|
switch.tplink1:
|
||||||
|
name: Kamera
|
||||||
|
description: Wohnzimmer Kamera
|
||||||
# ACHTUNG: WHITELIST EBENFALLS ERGÄNZEN!
|
# ACHTUNG: WHITELIST EBENFALLS ERGÄNZEN!
|
@ -116,9 +116,14 @@ influxdb:
|
|||||||
- sensor.instagram_codedwithlove_follows
|
- sensor.instagram_codedwithlove_follows
|
||||||
- sensor.instagram_codedwithlove_media
|
- sensor.instagram_codedwithlove_media
|
||||||
|
|
||||||
deconz:
|
#deconz:
|
||||||
host: !secret deconz_ip
|
# host: !secret deconz_ip
|
||||||
port: !secret deconz_port
|
# port: !secret deconz_port
|
||||||
|
|
||||||
|
zha:
|
||||||
|
usb_path: /dev/ttyACM0
|
||||||
|
radio_type: deconz
|
||||||
|
database_path: /config/zigbee.db
|
||||||
|
|
||||||
emulated_roku:
|
emulated_roku:
|
||||||
servers:
|
servers:
|
||||||
@ -210,12 +215,6 @@ binary_sensor:
|
|||||||
host: !secret desktop_ip
|
host: !secret desktop_ip
|
||||||
count: 2
|
count: 2
|
||||||
scan_interval: 15
|
scan_interval: 15
|
||||||
- platform: template
|
|
||||||
sensors:
|
|
||||||
cctv_active:
|
|
||||||
value_template: "{{ is_state('sensor.camera_mode_office', 'start') or is_state('sensor.camera_mode_office', 'recording') }}"
|
|
||||||
cctv_motion_detection_active:
|
|
||||||
value_template: "{{ (is_state('sensor.camera_mode_office', 'start') or is_state('sensor.camera_mode_office', 'recording')) and is_state('sensor.camera_motion_office', 'True') }}"
|
|
||||||
- platform: command_line
|
- platform: command_line
|
||||||
name: Wallboard HDMI Status
|
name: Wallboard HDMI Status
|
||||||
command: !secret wallboard_hdmi_status_cmd
|
command: !secret wallboard_hdmi_status_cmd
|
||||||
@ -228,26 +227,35 @@ binary_sensor:
|
|||||||
value_template: >-
|
value_template: >-
|
||||||
{{ is_state('person.florian', 'home')
|
{{ is_state('person.florian', 'home')
|
||||||
or is_state('person.jenny', 'home') }}
|
or is_state('person.jenny', 'home') }}
|
||||||
|
- platform: template
|
||||||
|
sensors:
|
||||||
|
motion_livingroom:
|
||||||
|
friendly_name: Motion Livingroom
|
||||||
|
device_class: motion
|
||||||
|
entity_id: camera.livingroom
|
||||||
|
value_template: "{{ is_state('camera.livingroom', 'motion') }}"
|
||||||
|
delay_off:
|
||||||
|
seconds: 30
|
||||||
|
|
||||||
weather:
|
weather:
|
||||||
- platform: openweathermap
|
- platform: openweathermap
|
||||||
api_key: !secret openweathermap
|
api_key: !secret openweathermap
|
||||||
|
|
||||||
#octoprint:
|
|
||||||
# host: !secret octoprint_ip
|
|
||||||
# api_key: !secret octoprint_api_key
|
|
||||||
# bed: true
|
|
||||||
# number_of_tools: 1
|
|
||||||
|
|
||||||
ffmpeg:
|
ffmpeg:
|
||||||
ffmpeg_bin: /usr/bin/ffmpeg
|
ffmpeg_bin: /usr/bin/ffmpeg
|
||||||
|
|
||||||
stream:
|
stream:
|
||||||
|
|
||||||
camera:
|
camera:
|
||||||
- platform: ffmpeg
|
- platform: reolink_dev
|
||||||
name: office
|
host: !secret cam_livingroom_ip
|
||||||
input: !secret office_stream_url
|
username: !secret cam_livingroom_user
|
||||||
|
password: !secret cam_livingroom_password
|
||||||
|
name: livingroom
|
||||||
|
stream: main
|
||||||
|
protocol: rtsp
|
||||||
|
channel: 0
|
||||||
|
scan_interval: 30
|
||||||
|
|
||||||
input_datetime:
|
input_datetime:
|
||||||
bedroom_alarm_clock_time:
|
bedroom_alarm_clock_time:
|
||||||
@ -281,18 +289,10 @@ rest_command:
|
|||||||
url: "https://{{ host }}/{{ apikey }}/monitorStates/{{ group }}/{{ preset_name }}"
|
url: "https://{{ host }}/{{ apikey }}/monitorStates/{{ group }}/{{ preset_name }}"
|
||||||
|
|
||||||
panel_iframe:
|
panel_iframe:
|
||||||
cctv:
|
|
||||||
title: 'CCTV'
|
|
||||||
url: !secret url_cctv
|
|
||||||
icon: mdi:cctv
|
|
||||||
chronograf:
|
chronograf:
|
||||||
title: 'Chronograf'
|
title: 'Chronograf'
|
||||||
url: !secret url_chronograf
|
url: !secret url_chronograf
|
||||||
icon: mdi:monitor-dashboard
|
icon: mdi:monitor-dashboard
|
||||||
deconz:
|
|
||||||
title: 'Deconz'
|
|
||||||
url: !secret url_deconz
|
|
||||||
icon: mdi:gate-and
|
|
||||||
esphome:
|
esphome:
|
||||||
title: 'ESPHome'
|
title: 'ESPHome'
|
||||||
url: !secret url_esphome
|
url: !secret url_esphome
|
||||||
|
@ -1,24 +1,14 @@
|
|||||||
icon: mdi:cctv
|
icon: mdi:cctv
|
||||||
path: cctv
|
path: cctv
|
||||||
cards:
|
cards:
|
||||||
- type: entities
|
|
||||||
show_header_toggle: false
|
|
||||||
entities:
|
|
||||||
- entity: binary_sensor.cctv_active
|
|
||||||
name: Kameras aktiviert
|
|
||||||
icon: mdi:power
|
|
||||||
- entity: binary_sensor.cctv_motion_detection_active
|
|
||||||
name: Aufnahmen bei Bewegung
|
|
||||||
icon: mdi:motion-sensor
|
|
||||||
- type: picture-glance
|
- type: picture-glance
|
||||||
title: Büro
|
camera_image: camera.livingroom
|
||||||
camera_image: camera.office
|
entities:
|
||||||
camera_view: live
|
- binary_sensor.motion_livingroom
|
||||||
entities:
|
- switch.camera_livingroom_ir_lights
|
||||||
- entity: binary_sensor.cctv_motion_detection_active
|
# - switch.camera_livingroom_email
|
||||||
icon: mdi:motion-sensor
|
# - switch.camera_livingroom_ftp
|
||||||
- entity: binary_sensor.cctv_active
|
title: Wohnzimmer
|
||||||
icon: mdi:power
|
|
||||||
- type: alarm-panel
|
- type: alarm-panel
|
||||||
name: Alarm
|
name: Alarm
|
||||||
entity: alarm_control_panel.home_alarm
|
entity: alarm_control_panel.home_alarm
|
||||||
|
44
scripts.yaml
44
scripts.yaml
@ -125,48 +125,6 @@ harmony_volume_down:
|
|||||||
device: 42849850 #Denon
|
device: 42849850 #Denon
|
||||||
num_repeats: 5
|
num_repeats: 5
|
||||||
|
|
||||||
# CCTV
|
|
||||||
|
|
||||||
shinobi_idle:
|
|
||||||
sequence:
|
|
||||||
- service: rest_command.shinobi_monitorstates
|
|
||||||
data:
|
|
||||||
host: !secret shinobi_host
|
|
||||||
apikey: !secret shinobi_api_key
|
|
||||||
group: !secret shinobi_group
|
|
||||||
preset_name: Inactive (Idle)
|
|
||||||
|
|
||||||
shinobi_active:
|
|
||||||
sequence:
|
|
||||||
- service: rest_command.shinobi_monitorstates
|
|
||||||
data:
|
|
||||||
host: !secret shinobi_host
|
|
||||||
apikey: !secret shinobi_api_key
|
|
||||||
group: !secret shinobi_group
|
|
||||||
preset_name: Active + Motion Detection OFF
|
|
||||||
|
|
||||||
shinobi_active_with_motion:
|
|
||||||
sequence:
|
|
||||||
- service: rest_command.shinobi_monitorstates
|
|
||||||
data:
|
|
||||||
host: !secret shinobi_host
|
|
||||||
apikey: !secret shinobi_api_key
|
|
||||||
group: !secret shinobi_group
|
|
||||||
preset_name: Active + Motion Detection ON
|
|
||||||
|
|
||||||
shinobi_notify:
|
|
||||||
sequence:
|
|
||||||
- service: notify.telegram_fb
|
|
||||||
data_template:
|
|
||||||
title: "*ALARM: Bewegung erkannt*"
|
|
||||||
message: |
|
|
||||||
[Live-Stream]({{ stream_url }})
|
|
||||||
Monitor: {{ name }}
|
|
||||||
Confidence: {{ confidence }}
|
|
||||||
Letzte Aufnahmen:
|
|
||||||
- [{{ video_last }}]({{ video_url }}/{{ video_last }})
|
|
||||||
- [{{ video_previous }}]({{ video_url }}/{{ video_previous }})
|
|
||||||
|
|
||||||
# Wallboard
|
# Wallboard
|
||||||
|
|
||||||
wallboard_hdmi_on:
|
wallboard_hdmi_on:
|
||||||
@ -178,7 +136,7 @@ wallboard_hdmi_on:
|
|||||||
user: !secret wallboard_ssh_user
|
user: !secret wallboard_ssh_user
|
||||||
port: !secret wallboard_ssh_port
|
port: !secret wallboard_ssh_port
|
||||||
command_or_param: 1
|
command_or_param: 1
|
||||||
|
|
||||||
wallboard_hdmi_off:
|
wallboard_hdmi_off:
|
||||||
sequence:
|
sequence:
|
||||||
- service: shell_command.ssh
|
- service: shell_command.ssh
|
||||||
|
@ -1,9 +0,0 @@
|
|||||||
- platform: rest
|
|
||||||
resource: !secret office_details_url
|
|
||||||
name: Camera Mode Office
|
|
||||||
value_template: '{{ value_json.mode }}'
|
|
||||||
|
|
||||||
- platform: rest
|
|
||||||
resource: !secret office_details_url
|
|
||||||
name: Camera Motion Office
|
|
||||||
value_template: '{{ value_json.details|string|regex_search("\"detector\":\"1\"", ignorecase=FALSE) }}'
|
|
@ -113,21 +113,56 @@
|
|||||||
|
|
||||||
### CCTV
|
### CCTV
|
||||||
|
|
||||||
cctv_motion_detection:
|
camera_livingroom_email:
|
||||||
friendly_name: CCTV Motion Detection
|
value_template: "{{ is_state_attr('camera.livingroom', 'email_enabled', true) }}"
|
||||||
value_template: "{{ states('binary_sensor.cctv_motion_detection_active') }}"
|
|
||||||
turn_on:
|
turn_on:
|
||||||
service: script.shinobi_active_with_motion
|
service: camera.enable_email
|
||||||
|
data:
|
||||||
|
entity_id: camera.livingroom
|
||||||
turn_off:
|
turn_off:
|
||||||
service: script.shinobi_active
|
service: camera.disable_email
|
||||||
|
data:
|
||||||
|
entity_id: camera.livingroom
|
||||||
|
icon_template: >-
|
||||||
|
{% if is_state_attr('camera.livingroom', 'email_enabled', true) %}
|
||||||
|
mdi:email
|
||||||
|
{% else %}
|
||||||
|
mdi:email-outline
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
cctv_active:
|
camera_livingroom_ftp:
|
||||||
friendly_name: CCTV Active
|
value_template: "{{ is_state_attr('camera.livingroom', 'ftp_enabled', true) }}"
|
||||||
value_template: "{{ states('binary_sensor.cctv_active') }}"
|
|
||||||
turn_on:
|
turn_on:
|
||||||
service: script.shinobi_active
|
service: camera.enable_ftp
|
||||||
|
data:
|
||||||
|
entity_id: camera.livingroom
|
||||||
turn_off:
|
turn_off:
|
||||||
service: script.shinobi_idle
|
service: camera.disable_ftp
|
||||||
|
data:
|
||||||
|
entity_id: camera.livingroom
|
||||||
|
icon_template: >-
|
||||||
|
{% if is_state_attr('camera.livingroom', 'ftp_enabled', true) %}
|
||||||
|
mdi:filmstrip
|
||||||
|
{% else %}
|
||||||
|
mdi:filmstrip-off
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
camera_livingroom_ir_lights:
|
||||||
|
value_template: "{{ is_state_attr('camera.livingroom', 'ir_lights_enabled', true) }}"
|
||||||
|
turn_on:
|
||||||
|
service: camera.enable_ir_lights
|
||||||
|
data:
|
||||||
|
entity_id: camera.livingroom
|
||||||
|
turn_off:
|
||||||
|
service: camera.disable_ir_lights
|
||||||
|
data:
|
||||||
|
entity_id: camera.livingroom
|
||||||
|
icon_template: >-
|
||||||
|
{% if is_state_attr('camera.livingroom', 'ir_lights_enabled', true) %}
|
||||||
|
mdi:flashlight
|
||||||
|
{% else %}
|
||||||
|
mdi:flashlight-off
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
### Wallboard
|
### Wallboard
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user