455 lines
12 KiB
YAML
455 lines
12 KiB
YAML
mqtt:
|
|
broker: core-mosquitto
|
|
username: homeassistant
|
|
password: !secret mosquitto_password
|
|
|
|
homeassistant:
|
|
customize:
|
|
light.hallway_tablet:
|
|
icon: mdi:tablet-android
|
|
friendly_name: "Hallway Tablet"
|
|
sensor.energy_meter_kwh:
|
|
friendly_name: "Energy Meter (kWh)"
|
|
icon: mdi:flash
|
|
sensor.energy_meter_watt:
|
|
friendly_name: "Energy Meter (Watt)"
|
|
icon: mdi:speedometer
|
|
sensor.energy_meter_watt_mean:
|
|
friendly_name: "Energy Meter (Watt) Stats"
|
|
icon: mdi:speedometer
|
|
sensor.sleep_tracker:
|
|
friendly_name: 'Sleep Tracker'
|
|
icon: mdi:sleep
|
|
sensor.phone_alarm:
|
|
friendly_name: 'Phone Alarm'
|
|
icon: mdi:bell
|
|
sensor.party_button_battery:
|
|
friendly_name: Party Button Battery
|
|
icon: mdi:battery
|
|
switch.party_button:
|
|
friendly_name: Party Button
|
|
icon: mdi:nuke
|
|
|
|
group:
|
|
energy_meter:
|
|
name: 'Energy Meter'
|
|
entities:
|
|
- sensor.energy_meter_kwh
|
|
- sensor.energy_meter_watt
|
|
- sensor.energy_meter_watt_mean
|
|
- sensor.energy_meter_watt_change
|
|
|
|
display_cabinet:
|
|
name: 'Display Cabinet'
|
|
entities:
|
|
- light.display_cabinet_front
|
|
- light.display_cabinet_top
|
|
- light.display_cabinet_bottom
|
|
|
|
# Effect speed sliders for h801 units.
|
|
input_number:
|
|
tv_shelf_effect_speed:
|
|
name: TV Shelf Effect Speed
|
|
initial: 30
|
|
min: 25
|
|
max: 30000
|
|
step: 25
|
|
|
|
automation:
|
|
- alias: Update TV Shelf Effect Speed
|
|
trigger:
|
|
platform: mqtt
|
|
topic: "001AB084/rgb/effect_speed/status"
|
|
action:
|
|
service: input_number.set_value
|
|
data_template:
|
|
entity_id: input_number.tv_shelf_effect_speed
|
|
value: '{{ trigger.payload }}'
|
|
|
|
- alias: Set TV Shelf Effect Speed
|
|
trigger:
|
|
platform: state
|
|
entity_id: input_number.tv_shelf_effect_speed
|
|
action:
|
|
service: mqtt.publish
|
|
data_template:
|
|
topic: "001AB084/rgb/effect_speed/set"
|
|
payload: '{{ states.input_number.tv_shelf_effect_speed.state }}'
|
|
|
|
sensor:
|
|
- platform: mqtt
|
|
name: energy_meter_kwh
|
|
state_topic: "meter/1/reading"
|
|
unit_of_measurement: "kWh"
|
|
value_template: '{{ value_json.kwhr }}'
|
|
- platform: mqtt
|
|
name: energy_meter_watt
|
|
state_topic: "meter/1/reading"
|
|
unit_of_measurement: "W"
|
|
value_template: '{{ value_json.power }}'
|
|
- platform: statistics
|
|
name: energy_meter_watt
|
|
entity_id: sensor.energy_meter_watt
|
|
- platform: template
|
|
sensors:
|
|
energy_meter_watt_change:
|
|
friendly_name: 'Energy Watt Change'
|
|
unit_of_measurement: "W"
|
|
value_template: '{{ states.sensor.energy_meter_watt_mean.attributes.change | float }}'
|
|
|
|
- platform: mqtt
|
|
name: sleep_tracker
|
|
state_topic: 'sleeptracker/tracking/state'
|
|
- platform: mqtt
|
|
name: phone_alarm
|
|
state_topic: 'sleeptracker/alarm/state'
|
|
|
|
- platform: mqtt
|
|
name: party_button_battery
|
|
state_topic: '00C16B3E/partybutton/battery'
|
|
availability_topic: "00C16B3E/partybutton/available"
|
|
unit_of_measurement: "v"
|
|
value_template: '{{ value | float / 1000 }}'
|
|
|
|
switch:
|
|
- platform: mqtt
|
|
name: party_button
|
|
state_topic: "00C16B3E/partybutton/status"
|
|
command_topic: "00C16B3E/partybutton/switch"
|
|
availability_topic: "00C16B3E/partybutton/available"
|
|
|
|
light:
|
|
- platform: mqtt
|
|
name: "TV Shelf"
|
|
state_topic: "001AB084/rgb/light/status"
|
|
command_topic: "001AB084/rgb/light/switch"
|
|
brightness_state_topic: "001AB084/rgb/brightness/status"
|
|
brightness_command_topic: "001AB084/rgb/brightness/set"
|
|
rgb_state_topic: "001AB084/rgb/rgb/status"
|
|
rgb_command_topic: "001AB084/rgb/rgb/set"
|
|
effect_state_topic: "001AB084/rgb/effect/status"
|
|
effect_command_topic: "001AB084/rgb/effect/set"
|
|
effect_list:
|
|
- rainbow
|
|
- random
|
|
- fade
|
|
- blink
|
|
- rainbow_flash
|
|
- random_flash
|
|
|
|
- platform: mqtt
|
|
name: "Bar Desk"
|
|
state_topic: "0023743D/rgb/light/status"
|
|
command_topic: "0023743D/rgb/light/switch"
|
|
brightness_state_topic: "0023743D/rgb/brightness/status"
|
|
brightness_command_topic: "0023743D/rgb/brightness/set"
|
|
rgb_state_topic: "0023743D/rgb/rgb/status"
|
|
rgb_command_topic: "0023743D/rgb/rgb/set"
|
|
effect_state_topic: "0023743D/rgb/effect/status"
|
|
effect_command_topic: "0023743D/rgb/effect/set"
|
|
effect_list:
|
|
- rainbow
|
|
- random
|
|
- fade
|
|
- blink
|
|
- rainbow_flash
|
|
- random_flash
|
|
|
|
- platform: mqtt
|
|
name: "Cabinet Spots"
|
|
state_topic: "0023743D/w1/light/status"
|
|
command_topic: "0023743D/w1/light/switch"
|
|
brightness_state_topic: "0023743D/w1/brightness/status"
|
|
brightness_command_topic: "0023743D/w1/brightness/set"
|
|
|
|
- platform: mqtt
|
|
name: "Cabinet Shelves"
|
|
state_topic: "0023743D/w2/light/status"
|
|
command_topic: "0023743D/w2/light/switch"
|
|
brightness_state_topic: "0023743D/w2/brightness/status"
|
|
brightness_command_topic: "0023743D/w2/brightness/set"
|
|
|
|
- platform: mqtt
|
|
name: "Windowsill"
|
|
state_topic: "00236FEE/rgb/light/status"
|
|
command_topic: "00236FEE/rgb/light/switch"
|
|
brightness_state_topic: "00236FEE/rgb/brightness/status"
|
|
brightness_command_topic: "00236FEE/rgb/brightness/set"
|
|
rgb_state_topic: "00236FEE/rgb/rgb/status"
|
|
rgb_command_topic: "00236FEE/rgb/rgb/set"
|
|
effect_state_topic: "00236FEE/rgb/effect/status"
|
|
effect_command_topic: "00236FEE/rgb/effect/set"
|
|
effect_list:
|
|
- rainbow
|
|
- random
|
|
- fade
|
|
- blink
|
|
- rainbow_flash
|
|
- random_flash
|
|
|
|
|
|
- platform: mqtt
|
|
name: "TV Backlight"
|
|
state_topic: "002358ED/rgb/light/status"
|
|
command_topic: "002358ED/rgb/light/switch"
|
|
brightness_state_topic: "002358ED/rgb/brightness/status"
|
|
brightness_command_topic: "002358ED/rgb/brightness/set"
|
|
rgb_state_topic: "002358ED/rgb/rgb/status"
|
|
rgb_command_topic: "002358ED/rgb/rgb/set"
|
|
effect_state_topic: "002358ED/rgb/effect/status"
|
|
effect_command_topic: "002358ED/rgb/effect/set"
|
|
effect_list:
|
|
- rainbow
|
|
- random
|
|
- fade
|
|
- blink
|
|
- rainbow_flash
|
|
- random_flash
|
|
|
|
|
|
- platform: mqtt
|
|
name: "Office Desk Shelf"
|
|
state_topic: "0023750F/rgb/light/status"
|
|
command_topic: "0023750F/rgb/light/switch"
|
|
brightness_state_topic: "0023750F/rgb/brightness/status"
|
|
brightness_command_topic: "0023750F/rgb/brightness/set"
|
|
rgb_state_topic: "0023750F/rgb/rgb/status"
|
|
rgb_command_topic: "0023750F/rgb/rgb/set"
|
|
effect_state_topic: "0023750F/rgb/effect/status"
|
|
effect_command_topic: "0023750F/rgb/effect/set"
|
|
effect_list:
|
|
- rainbow
|
|
- random
|
|
- fade
|
|
- blink
|
|
- rainbow_flash
|
|
- random_flash
|
|
|
|
|
|
- platform: mqtt
|
|
name: "Office Desk"
|
|
state_topic: "0023750F/w1/light/status"
|
|
command_topic: "0023750F/w1/light/switch"
|
|
brightness_state_topic: "0023750F/w1/brightness/status"
|
|
brightness_command_topic: "0023750F/w1/brightness/set"
|
|
|
|
- platform: mqtt
|
|
name: "Bedroom Shelves"
|
|
state_topic: "00227723/rgb/light/status"
|
|
command_topic: "00227723/rgb/light/switch"
|
|
brightness_state_topic: "00227723/rgb/brightness/status"
|
|
brightness_command_topic: "00227723/rgb/brightness/set"
|
|
rgb_state_topic: "00227723/rgb/rgb/status"
|
|
rgb_command_topic: "00227723/rgb/rgb/set"
|
|
effect_state_topic: "00227723/rgb/effect/status"
|
|
effect_command_topic: "00227723/rgb/effect/set"
|
|
effect_list:
|
|
- rainbow
|
|
- random
|
|
- fade
|
|
- blink
|
|
- rainbow_flash
|
|
- random_flash
|
|
|
|
|
|
- platform: mqtt
|
|
name: "Bedroom Shelf Strip"
|
|
state_topic: "00227723/w1/light/status"
|
|
command_topic: "00227723/w1/light/switch"
|
|
brightness_state_topic: "00227723/w1/brightness/status"
|
|
brightness_command_topic: "00227723/w1/brightness/set"
|
|
|
|
- platform: mqtt
|
|
name: "Office Shelves"
|
|
state_topic: "00192899/w1/light/status"
|
|
command_topic: "00192899/w1/light/switch"
|
|
brightness_state_topic: "00192899/w1/brightness/status"
|
|
brightness_command_topic: "00192899/w1/brightness/set"
|
|
|
|
- platform: mqtt
|
|
name: "Display Cabinet Front"
|
|
state_topic: "001AAD0C/w1/light/status"
|
|
command_topic: "001AAD0C/w1/light/switch"
|
|
brightness_state_topic: "001AAD0C/w1/brightness/status"
|
|
brightness_command_topic: "001AAD0C/w1/brightness/set"
|
|
|
|
- platform: mqtt
|
|
name: "Display Cabinet Top"
|
|
state_topic: "001AAD0C/rgb/light/status"
|
|
command_topic: "001AAD0C/rgb/light/switch"
|
|
brightness_state_topic: "001AAD0C/rgb/brightness/status"
|
|
brightness_command_topic: "001AAD0C/rgb/brightness/set"
|
|
rgb_state_topic: "001AAD0C/rgb/rgb/status"
|
|
rgb_command_topic: "001AAD0C/rgb/rgb/set"
|
|
effect_state_topic: "001AAD0C/rgb/effect/status"
|
|
effect_command_topic: "001AAD0C/rgb/effect/set"
|
|
effect_list:
|
|
- rainbow
|
|
- random
|
|
- fade
|
|
- blink
|
|
- rainbow_flash
|
|
- random_flash
|
|
|
|
- platform: mqtt
|
|
name: "Display Cabinet Bottom"
|
|
state_topic: "00B94918/rgb/light/status"
|
|
command_topic: "00B94918/rgb/light/switch"
|
|
brightness_state_topic: "00B94918/rgb/brightness/status"
|
|
brightness_command_topic: "00B94918/rgb/brightness/set"
|
|
rgb_state_topic: "00B94918/rgb/rgb/status"
|
|
rgb_command_topic: "00B94918/rgb/rgb/set"
|
|
effect_state_topic: "00B94918/rgb/effect/status"
|
|
effect_command_topic: "00B94918/rgb/effect/set"
|
|
effect_list:
|
|
- rainbow
|
|
- random
|
|
- fade
|
|
- blink
|
|
- rainbow_flash
|
|
- random_flash
|
|
|
|
- platform: mqtt
|
|
name: "Sofa Corner"
|
|
state_topic: "001AABB8/rgb/light/status"
|
|
command_topic: "001AABB8/rgb/light/switch"
|
|
brightness_state_topic: "001AABB8/rgb/brightness/status"
|
|
brightness_command_topic: "001AABB8/rgb/brightness/set"
|
|
rgb_state_topic: "001AABB8/rgb/rgb/status"
|
|
rgb_command_topic: "001AABB8/rgb/rgb/set"
|
|
effect_state_topic: "001AABB8/rgb/effect/status"
|
|
effect_command_topic: "001AABB8/rgb/effect/set"
|
|
effect_list:
|
|
- rainbow
|
|
- random
|
|
- fade
|
|
- blink
|
|
- rainbow_flash
|
|
- random_flash
|
|
|
|
|
|
- platform: mqtt_json
|
|
name: Screen Shelf
|
|
retain: true
|
|
state_topic: "bruh/screen-shelf"
|
|
command_topic: "bruh/screen-shelf/set"
|
|
brightness: true
|
|
rgb: true
|
|
effect: true
|
|
effect_list:
|
|
- bpm
|
|
- candy cane
|
|
- confetti
|
|
- cyclon rainbow
|
|
- dots
|
|
- fire
|
|
- glitter
|
|
- juggle
|
|
- lightning
|
|
- police all
|
|
- police one
|
|
- rainbow
|
|
- rainbow with glitter
|
|
- sinelon
|
|
- twinkle
|
|
- noise
|
|
- ripple
|
|
- solid
|
|
|
|
- platform: mqtt_json
|
|
name: Office Shelf Bar
|
|
retain: true
|
|
state_topic: "bruh/office-shelf-bar"
|
|
command_topic: "bruh/office-shelf-bar/set"
|
|
brightness: true
|
|
rgb: true
|
|
effect: true
|
|
effect_list:
|
|
- bpm
|
|
- candy cane
|
|
- confetti
|
|
- cyclon rainbow
|
|
- dots
|
|
- fire
|
|
- glitter
|
|
- juggle
|
|
- lightning
|
|
- police all
|
|
- police one
|
|
- rainbow
|
|
- rainbow with glitter
|
|
- sinelon
|
|
- twinkle
|
|
- noise
|
|
- ripple
|
|
- solid
|
|
|
|
- platform: mqtt_json
|
|
name: Sofa Table
|
|
retain: true
|
|
state_topic: "bruh/WS2811string"
|
|
command_topic: "bruh/WS2811string/set"
|
|
brightness: true
|
|
rgb: true
|
|
effect: true
|
|
effect_list:
|
|
- bpm
|
|
- candy cane
|
|
- confetti
|
|
- cyclon rainbow
|
|
- dots
|
|
- fire
|
|
- glitter
|
|
- juggle
|
|
- lightning
|
|
- police all
|
|
- police one
|
|
- rainbow
|
|
- rainbow with glitter
|
|
- sinelon
|
|
- twinkle
|
|
- noise
|
|
- ripple
|
|
- solid
|
|
|
|
- platform: mqtt
|
|
name: "Kitchen Cabinets"
|
|
state_topic: "001AAF03/rgb/light/status"
|
|
command_topic: "001AAF03/rgb/light/switch"
|
|
brightness_state_topic: "001AAF03/rgb/brightness/status"
|
|
brightness_command_topic: "001AAF03/rgb/brightness/set"
|
|
rgb_state_topic: "001AAF03/rgb/rgb/status"
|
|
rgb_command_topic: "001AAF03/rgb/rgb/set"
|
|
effect_state_topic: "001AAF03/rgb/effect/status"
|
|
effect_command_topic: "001AAF03/rgb/effect/set"
|
|
effect_list:
|
|
- rainbow
|
|
- random
|
|
- fade
|
|
- blink
|
|
- rainbow_flash
|
|
- random_flash
|
|
|
|
- platform: mqtt
|
|
name: "Hobby Desk"
|
|
state_topic: "00192B4F/w1/light/status"
|
|
command_topic: "00192B4F/w1/light/switch"
|
|
brightness_state_topic: "00192B4F/w1/brightness/status"
|
|
brightness_command_topic: "00192B4F/w1/brightness/set"
|
|
|
|
- platform: mqtt
|
|
name: "Kitchen Sink"
|
|
state_topic: "stat/kitchen1/POWER"
|
|
command_topic: "cmnd/kitchen1/POWER"
|
|
qos: 1
|
|
payload_on: "ON"
|
|
payload_off: "OFF"
|
|
|
|
- platform: mqtt
|
|
name: "Kitchen Stove"
|
|
state_topic: "stat/kitchen2/POWER"
|
|
command_topic: "cmnd/kitchen2/POWER"
|
|
qos: 1
|
|
payload_on: "ON"
|
|
payload_off: "OFF"
|