ESPresence, OBK, and other updates

This commit is contained in:
root
2023-10-20 13:27:48 +13:00
parent 0c38ec96f0
commit 910a908880
26 changed files with 1112 additions and 42 deletions

View File

@@ -0,0 +1,37 @@
automation:
- alias: "Turn on the Wifi Guest Network"
trigger:
platform: state
entity_id: input_boolean.wifi_guest_network
to: "on"
action:
service: media_player.play_media
target:
entity_id: media_player.view_rd_kitchen_echo_show
data:
media_content_type: "custom"
media_content_id: "ask t.p.link to enable guest network"
- alias: "Turn off the Wifi Guest Network"
trigger:
platform: state
entity_id: input_boolean.wifi_guest_network
to: "off"
action:
service: media_player.play_media
target:
entity_id: media_player.view_rd_kitchen_echo_show
data:
media_content_type: "custom"
media_content_id: "ask t.p.link to disable guest network"
- alias: "Switch guest network off after time"
trigger:
platform: state
entity_id: input_boolean.wifi_guest_network
from: "off"
to: "on"
for: "02:00:00"
condition: []
action:
service: input_boolean.turn_off
entity_id: input_boolean.wifi_guest_network
mode: single

View File

@@ -1,11 +0,0 @@
mqtt:
sensor:
- unique_id: washing_machine_finished
name: "Washing Machine Finished"
state_topic: "viewroad-status/activityfeed/washercomplete"
- unique_id: dryer_finished
name: "Dryer Finished"
state_topic: "viewroad-status/activityfeed/dryercomplete"
- unique_id: dishwasher_finished
name: "Dishwasher Finished"
state_topic: "viewroad-status/activityfeed/dishwashercomplete"

View File

@@ -0,0 +1,30 @@
mqtt:
sensor:
- unique_id: washing_machine_finished
name: "Washer Finished"
state_topic: "viewroad-status/activityfeed/Washer_complete"
icon: mdi:washing-machine
- unique_id: dryer_finished
name: "Dryer Finished"
state_topic: "viewroad-status/activityfeed/Dryer_complete"
icon: mdi:tumble-dryer
- unique_id: dishwasher_finished
name: "Dishwasher Finished"
state_topic: "viewroad-status/activityfeed/Dishwasher_complete"
icon: mdi:dishwasher
- unique_id: 16Acharger_finished
name: "Leaf Done"
state_topic: "viewroad-status/activityfeed/Leaf_Charger_complete"
icon: mdi:car-electric
- unique_id: 32Acharger_finished
name: "Atto Done"
state_topic: "viewroad-status/activityfeed/Atto_Charger_complete"
icon: mdi:car-electric
- unique_id: Ryobi_Charger_1_finished
name: "Ryobi 1 Done"
state_topic: "viewroad-status/activityfeed/Ryobi_Charger_1_complete"
icon: mdi:circular-saw
- unique_id: Ryobi_Charger_2_finished
name: "Ryobi 2 Done"
state_topic: "viewroad-status/activityfeed/Ryobi_Charger_2_complete"
icon: mdi:circular-saw

View File

@@ -0,0 +1,24 @@
input_select:
bedroom_3_led_actions:
icon: mdi:led-strip
name: Bedroom 3 LED Controls
initial: "----"
options:
- "----"
- "Off"
- "1 Hour Fade"
automation:
- id: set_the_bedroom_3_led_actions
alias: Set the Bedroom 3 LED Actions
trigger:
entity_id: input_select.bedroom_3_led_actions
platform: state
action:
service: mqtt.publish
data:
topic: viewroad-commands/bedroom3controls/windowledactions
payload:
'{% set mapping = { "----":"----", "Off":"off", "1 Hour Fade":"fade_1" } %} {% set dta = trigger.to_state.state %}
{{ mapping[dta] }}
'

27
packages/ev_charging.yaml Normal file
View File

@@ -0,0 +1,27 @@
input_select:
leaf_ev_charging_mode:
icon: mdi:ev-plug-type1
name: Leaf EV Charge Mode
initial: "Normal (Offpeak)"
options:
- "Normal (Offpeak)"
- "Offpeak until charged"
- "1hr top-up now"
- "Charge now until full"
- "Stop charging now"
automation:
- id: set_the_leaf_ev_charging_mode
alias: Set the Leaf EV Charging MOde
trigger:
entity_id: input_select.leaf_ev_charging_mode
platform: state
action:
service: mqtt.publish
data:
topic: viewroad-status/evcharging/leaf-chargemode
payload:
'{% set mapping = { "Normal (Offpeak)":"normal", "Offpeak until charged":"offpeak-full",
"1hr top-up now":"boost", "Charge now until full":"now-full", "Stop charging now":"stop" } %} {% set dta = trigger.to_state.state %}
{{ mapping[dta] }}
'

View File

@@ -8,3 +8,16 @@ mqtt:
payload_on: "Blocked"
icon: mdi:web
retain: false
button:
- unique_id: mollies.internet.temp.block
name: "Mollie's Internet (1 hr Block)"
command_topic: "viewroad-commands/firewall/tempblock-mollie-devices"
payload_press: "Blocked"
icon: mdi:web
retain: false
- unique_id: mollies.internet.temp.unblock
name: "Mollie's Internet (15min Unblock)"
command_topic: "viewroad-commands/firewall/tempunblock-mollie-devices"
payload_press: "Unblocked"
icon: mdi:web
retain: false

View File

@@ -1,5 +1,5 @@
media_player:
# MPD Media Player on Lounge Touchscreen
platform: mpd
host: !secret lounge_mpd_player
scan_interval: 1
- platform: mpd
host: !secret lounge_mpd_player
scan_interval: 1

View File

@@ -0,0 +1,8 @@
binary_sensor:
- platform: template
sensors:
inverted_quiet_time_sensor:
value_template: >-
{{ is_state('input_boolean.quiet_time', 'off') }}
#device_class: None
friendly_name: Quiet Time (Inverted)

32
packages/openbeken.yaml Normal file
View File

@@ -0,0 +1,32 @@
mqtt:
switch:
- unique_id: "Garage Entry Switch (Triple, obkE6F7)_relay_1"
name: "obk-garageswitch-1-E6F7 1"
state_topic: "obk-garageswitch-1-E6F7/1/get"
command_topic: "obk-garageswitch-1-E6F7/1/set"
qos: 1
payload_on: 1
payload_off: 0
retain: true
availability:
- topic: "obk-garageswitch-1-E6F7/connected"
- unique_id: "Garage Entry Switch (Triple, obkE6F7)_relay_2"
name: "obk-garageswitch-1-E6F7 2"
state_topic: "obk-garageswitch-1-E6F7/2/get"
command_topic: "obk-garageswitch-1-E6F7/2/set"
qos: 1
payload_on: 1
payload_off: 0
retain: true
availability:
- topic: "obk-garageswitch-1-E6F7/connected"
- unique_id: "Garage Entry Switch (Triple, obkE6F7)_relay_3"
name: "obk-garageswitch-1-E6F7 3"
state_topic: "obk-garageswitch-1-E6F7/3/get"
command_topic: "obk-garageswitch-1-E6F7/3/set"
qos: 1
payload_on: 1
payload_off: 0
retain: true
availability:
- topic: "obk-garageswitch-1-E6F7/connected"

View File

@@ -1,21 +0,0 @@
mqtt:
sensor:
- unique_id: pets_fed
name: "Pets Fed"
state_topic: "viewroad-status/activityfeed/petsfed"
- unique_id: hours_since_cat_fed
name: "Hours Since Cat Fed"
state_topic: "viewroad-tele/petfeeding/hoursSinceCatFed"
unit_of_measurement: "Hours"
- unique_id: hours_since_zorro_fed
name: "Hours Since Zorro Fed"
state_topic: "viewroad-tele/petfeeding/hoursSinceDogFed"
unit_of_measurement: "Hours"
- unique_id: hours_since_water_filled
name: "Hours Since Pet Water Filled"
state_topic: "viewroad-tele/petfeeding/hoursSinceWaterFilled"
unit_of_measurement: "Hours"
- unique_id: hours_since_pets_fed
name: "Hours Since Pets Fed"
state_topic: "viewroad-tele/petfeeding/averageHoursSincePetsFed"
unit_of_measurement: "Hours"

View File

@@ -0,0 +1,26 @@
mqtt:
sensor:
- unique_id: dog_fed_activity
name: "Dog Fed"
state_topic: "viewroad-status/activityfeed/dogfed"
icon: mdi:dog
- unique_id: depooped_activity
name: "DePooped"
state_topic: "viewroad-status/activityfeed/depooped"
icon: mdi:emoticon-poop
- unique_id: jobs_done_activity
name: "Jobs Done"
state_topic: "viewroad-status/activityfeed/jobsdone"
icon: mdi:notebook
- unique_id: hours_since_jobs_done
name: "Hours Since Jobs Done"
state_topic: "viewroad-tele/petfeeding/hoursSinceJobsDone"
unit_of_measurement: "Hours"
- unique_id: hours_since_zorro_fed
name: "Hours Since Zorro Fed"
state_topic: "viewroad-tele/petfeeding/hoursSinceDogFed"
unit_of_measurement: "Hours"
- unique_id: hours_since_depooped
name: "Hours Since DePooped"
state_topic: "viewroad-tele/petfeeding/hoursSinceDePooped"
unit_of_measurement: "Hours"

View File

@@ -0,0 +1,32 @@
input_select:
pool_light_colour_select:
icon: mdi:swimming-pool
name: Pool Light Colour
initial: "Off"
options:
- "Off"
- "Dk Blue"
- "Red"
- "Green"
- "Lt Blue"
- "Disco"
- "9"
- "10"
- "11"
- "12"
- "13"
automation:
- id: set_the_pool_light_colour
alias: Set the Pool Light Colour
trigger:
entity_id: input_select.pool_light_colour_select
platform: state
action:
service: mqtt.publish
data:
topic: viewroad-commands/poolcontrols/poollightcolour
payload: '{% set mapping = { "Off":"0", "Dk Blue":"1",
"Red":"2", "Green":"3", "4":"4" ,"Lt Blue":"5", "6":"6", "7":"7", "Disco":"8", "9":"9", "10":"10", "11":"11", "12":"12", "13":"13" } %} {% set dta = trigger.to_state.state %}
{{ mapping[dta] }}
'

View File

@@ -1,5 +1,5 @@
sensor:
- platform: tautulli
api_key: !secret tautulli_api_key
host: !secret tautulli_api_host
port: !secret tautulli_api_port
#sensor:
# - platform: tautulli
# api_key: !secret tautulli_api_key
# host: !secret tautulli_api_host
# port: !secret tautulli_api_port

View File

@@ -0,0 +1,5 @@
waste_collection_schedule:
sources:
- name: aucklandcouncil_govt_nz
args:
area_number: 12344403722 # see 'How to get the source argument below'

View File

@@ -0,0 +1,8 @@
sensor:
- platform: template
sensors:
weewx_wind_bearing_template:
value_template: >
{% set direction = ['N','NNE','NE','ENE','E','ESE','SE','SSE','S','SSW','SW','WSW','W','WNW','NW','NNW','N'] %}
{% set degree = states('sensor.weewx_wind_direction')|float %}
{{ direction[((degree+11.25)/22.5)|int] }}