diff --git a/customizations/scripts.yaml b/customizations/scripts.yaml index 434137aef6d8d770c255ade5c70ae7cf49e474d1..6e081d05a413a658e79e78ca4365bad0ef3d6888 100644 --- a/customizations/scripts.yaml +++ b/customizations/scripts.yaml @@ -1,3 +1,21 @@ script.restart_august_daemon: friendly_name: Restart August daemon icon: mdi:autorenew +script.force_lock_interior: + friendly_name: Lock Interior + icon: mdi:autorenew +script.force_unlock_interior: + friendly_name: Unlock Interior + icon: mdi:autorenew +script.force_disconnect_interior: + friendly_name: Disconnect Interior + icon: mdi:close-octagon +script.force_lock_keyed: + friendly_name: Lock Keyed + icon: mdi:autorenew +script.force_unlock_keyed: + friendly_name: Unlock Keyed + icon: mdi:autorenew +script.force_disconnect_keyed: + friendly_name: Disconnect Keyed + icon: mdi:close-octagon diff --git a/customizations/sensors.yaml b/customizations/sensors.yaml index fb7b5e2d68a3e812580c98666ed98c525014100c..b66e0a09a125164f36ed007f953780c170a53c92 100644 --- a/customizations/sensors.yaml +++ b/customizations/sensors.yaml @@ -4,6 +4,9 @@ sensor.speedtest_download: icon: mdi:download sensor.speedtest_upload: icon: mdi:upload +sensor.kitchen_fluorescent_consumption: + friendly_name: Kitchen Fluorescent + icon: mdi:lightbulb-outline sensor.lava_lamp_consumption: friendly_name: Lava Lamp icon: mdi:radiator diff --git a/customizations/switches.yaml b/customizations/switches.yaml index fa98d1893621937b06a090c03ea3b8232d4bf136..ffbc727d0dc7f17e0181c7647b125ed485f688b6 100644 --- a/customizations/switches.yaml +++ b/customizations/switches.yaml @@ -1,3 +1,5 @@ +switch.kitchen: + icon: mdi:lightbulb switch.lava_lamp: icon: mdi:led-on switch.wireless_charger: diff --git a/groups.yaml b/groups.yaml index 1dab325ae69be4fde2503fec327b06631e71d9d6..710d453e2ef84715415f04ddebd99b8632596b16 100644 --- a/groups.yaml +++ b/groups.yaml @@ -82,8 +82,9 @@ living_room: - scene.lr_relax - scene.lr_read dining_area: - name: Dining Area + name: Kitchen & Dining entities: + - switch.kitchen - light.ceiling_fan_1 - light.ceiling_fan_2 - scene.da_nightlight @@ -161,6 +162,7 @@ smoke_gas: power_consumption: name: Power Consumption entities: + - sensor.kitchen_fluorescent_consumption - sensor.lava_lamp_consumption presence: name: Presence @@ -214,6 +216,12 @@ scripts_misc: name: Actions entities: - script.restart_august_daemon + - script.force_lock_interior + - script.force_unlock_interior + - script.force_disconnect_interior + - script.force_lock_keyed + - script.force_unlock_keyed + - script.force_disconnect_keyed wunderground: name: Wunderground entities: diff --git a/scripts.yaml b/scripts.yaml index c95f1f3776ec42013e98db4de8424db44ce9eaab..bc806fc317c8aff7376b46c6cd9809b28631cdc9 100644 --- a/scripts.yaml +++ b/scripts.yaml @@ -101,3 +101,27 @@ dining_area_lights_timeout: restart_august_daemon: sequence: - service: shell_command.restart_august_daemon +# Force lock keyed +force_lock_keyed: + sequence: + - service: shell_command.force_lock_keyed +# Force unlock keyed +force_unlock_keyed: + sequence: + - service: shell_command.force_unlock_keyed +# Force disconnect keyed +force_disconnect_keyed: + sequence: + - service: shell_command.force_disconnect_keyed +# Force lock interior +force_lock_interior: + sequence: + - service: shell_command.force_lock_interior +# Force unlock interior +force_unlock_interior: + sequence: + - service: shell_command.force_unlock_interior +# Force disconnect interior +force_disconnect_interior: + sequence: + - service: shell_command.force_disconnect_interior diff --git a/sensors/power-kitchen-light.yaml b/sensors/power-kitchen-light.yaml new file mode 100644 index 0000000000000000000000000000000000000000..58dc6ed917de317fbd16fc11260ee9147c0340d6 --- /dev/null +++ b/sensors/power-kitchen-light.yaml @@ -0,0 +1,4 @@ +platform: mqtt +state_topic: "smartthings/Kitchen/power" +name: "Kitchen Fluorescent Consumption" +unit_of_measurement: "W" diff --git a/shell_commands.yaml b/shell_commands.yaml index 305275b2e03a0e3f2aa4247beb341375ce836297..3217bb916f290a13043f5e6250b6040a2e891e32 100644 --- a/shell_commands.yaml +++ b/shell_commands.yaml @@ -1 +1,7 @@ restart_august_daemon: /usr/bin/pm2 restart npm +force_lock_keyed: curl http://localhost:3176/api/lock/keyed +force_lock_interior: curl http://localhost:3176/api/lock/interior +force_unlock_keyed: curl http://localhost:3176/api/unlock/keyed +force_unlock_interior: curl http://localhost:3176/api/unlock/interior +force_disconnect_keyed: curl http://localhost:3176/api/disconnect/keyed +force_disconnect_interior: curl http://localhost:3176/api/disconnect/interior diff --git a/switches.yaml b/switches.yaml index 33bdd765d74ee5bc8cca0fbe33e522568e680281..bb2f6ce8578ddce1c2c65c8bc618cb23e034477c 100644 --- a/switches.yaml +++ b/switches.yaml @@ -1,3 +1,10 @@ +- platform: mqtt + name: "Kitchen" + state_topic: "smartthings/Kitchen/switch" + command_topic: "smartthings/Kitchen/switch" + payload_on: "on" + payload_off: "off" + retain: true - platform: mqtt name: "Lava Lamp" state_topic: "smartthings/Lava Lamp/switch"