ESPresence, OBK, and other updates

This commit is contained in:
root
2023-10-20 13:30:32 +13:00
parent 910a908880
commit 9c9502685f
6 changed files with 146 additions and 46 deletions

View File

@@ -16,4 +16,4 @@ mqtt:
state_off: "OFF"
optimistic: false
qos: 0
# retain: true
retain: true # need this, or fire starts on HA reboot. Could fix in Node red too.

View File

@@ -1,32 +1,62 @@
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"
switch:
- unique_id: "Garage_Entry_Switch_1"
name: "Garage Entry Switch 1"
state_topic: "obk/obk-ks811t-006D-garageentry/1/get"
command_topic: "obk/obk-ks811t-006D-garageentry/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"
- topic: "obk/obk-ks811t-006D-garageentry/connected"
- unique_id: "Garage_Entry_Switch_2"
name: "Garage Entry Switch 2"
state_topic: "obk/obk-ks811t-006D-garageentry/2/get"
command_topic: "obk/obk-ks811t-006D-garageentry/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"
- topic: "obk/obk-ks811t-006D-garageentry/connected"
- unique_id: "Garage_Entry_Switch_3"
name: "Garage Entry Switch 3"
state_topic: "obk/obk-ks811t-006D-garageentry/3/get"
command_topic: "obk/obk-ks811t-006D-garageentry/3/set"
qos: 1
payload_on: 1
payload_off: 0
retain: true
availability:
- topic: "obk-garageswitch-1-E6F7/connected"
- topic: "obk/obk-ks811t-006D-garageentry/connected"
- unique_id: "Main_Bathroom_Light_Switch_1"
name: "Main Bathroom Light Switch 1"
state_topic: "obk/obk-ks811t-B1C4-mainbath1/1/get"
command_topic: "obk/obk-ks811t-B1C4-mainbath1/1/set"
qos: 1
payload_on: 1
payload_off: 0
retain: true
availability:
- topic: "obk/obk-ks811t-B1C4-mainbath1/connected"
- unique_id: "Main_Bathroom_Light_Switch_2"
name: "Main Bathroom Light Switch 2"
state_topic: "obk/obk-ks811t-B1C4-mainbath1/2/get"
command_topic: "obk/obk-ks811t-B1C4-mainbath1/2/set"
qos: 1
payload_on: 1
payload_off: 0
retain: true
availability:
- topic: "obk/obk-ks811t-B1C4-mainbath1/connected"
- unique_id: "Main_Bathroom_Light_Switch_3"
name: "Main Bathroom Light Switch 3"
state_topic: "obk/obk-ks811t-B1C4-mainbath1/3/get"
command_topic: "obk/obk-ks811t-B1C4-mainbath1/3/set"
qos: 1
payload_on: 1
payload_off: 0
retain: true
availability:
- topic: "obk/obk-ks811t-B1C4-mainbath1/connected"

View File

@@ -1,25 +1,61 @@
# ESPresence Sensing
# https://espresense.com/home_assistant
#
sensor:
- platform: mqtt_room
device_id: "d75fda56c990"
name: "Nissan Leaf LNM748 (BTB01)"
state_topic: "espresense/rooms"
unique_id: !secret btb01_uID
device_id: !secret btb01_dID
name: !secret btb01_name
state_topic: !secret btb01_topic
timeout: 60
away_timeout: 120 # number of seconds after which the enitity will get status not_home
- platform: mqtt_room
device_id: "f54fe90c3d15"
name: "Mazda MPV KUU64 (BTB02)"
state_topic: "espresense/rooms"
unique_id: !secret btb02_uID
device_id: !secret btb02_dID
name: !secret btb02_name
state_topic: !secret btb02_topic
timeout: 60
away_timeout: 120 # number of seconds after which the enitity will get status not_home
- platform: mqtt_room
device_id: "c5eba6d8e8fd"
name: "Vespa Scooter B8EJJ (BTB03)"
state_topic: "espresense/rooms"
unique_id: !secret btb03_uID
device_id: !secret btb03_dID
name: !secret btb03_name
state_topic: !secret btb03_topic
timeout: 60
away_timeout: 120 # number of seconds after which the enitity will get status not_home
- platform: mqtt_room
device_id: "ed5e450c84a5"
name: "Zephyr Caravan Z556D (BTB04)"
state_topic: "espresense/rooms"
unique_id: !secret btb04_uID
device_id: !secret btb04_dID
name: !secret btb04_name
state_topic: !secret btb04_topic
timeout: 60
away_timeout: 120 # number of seconds after which the enitity will get status not_home
- platform: mqtt_room
unique_id: !secret btb05_uID
device_id: !secret btb05_dID
name: !secret btb05_name
state_topic: !secret btb05_topic
timeout: 60
away_timeout: 120 # number of seconds after which the enitity will get status not_home
- platform: mqtt_room
unique_id: !secret btb06_uID
device_id: !secret btb06_dID
name: !secret btb06_name
state_topic: !secret btb06_topic
timeout: 60
away_timeout: 120 # number of seconds after which the enitity will get status not_home
- platform: mqtt_room
unique_id: !secret btb07_uID
device_id: !secret btb07_dID
name: !secret btb07_name
state_topic: !secret btb07_topic
timeout: 60
away_timeout: 120 # number of seconds after which the enitity will get status not_home
- platform: mqtt_room
unique_id: !secret btb08_uID
device_id: !secret btb08_dID
name: !secret btb08_name
state_topic: !secret btb08_topic
timeout: 60
away_timeout: 120 # number of seconds after which the enitity will get status not_home

View File

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