Skip to content

Instantly share code, notes, and snippets.

@AZDane
AZDane / kitchencabinet1.yaml
Last active September 8, 2023 06:14
ESPHome code for Quinled Deca running all my kitchen cabinet lighting
esphome:
name: kitchencabinet1
platform: ESP32
board: mhetesp32devkit
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_pass
manual_ip:
# Set this to the IP of the ESP
static_ip: 192.168.107.52
[{"id":"b2cc427c.c0414","type":"inject","z":"8cda756f.96dc48","name":"","topic":"","payload":"","payloadType":"date","repeat":"60","crontab":"","once":false,"onceDelay":0.1,"x":110,"y":60,"wires":[["722ae295.8141cc"]]},{"id":"722ae295.8141cc","type":"api-current-state","z":"8cda756f.96dc48","name":"Wind Speed","server":"a6d7ccd5.9cc23","outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"sensor.dark_sky_wind_speed","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":150,"y":100,"wires":[["f33d0de8.dca0b"]]},{"id":"f33d0de8.dca0b","type":"switch","z":"8cda756f.96dc48","name":"Conditions","property":"payload","propertyType":"msg","rules":[{"t":"gte","v":"6","vt":"num"},{"t":"lt","v":"6","vt":"num"}],"checkall":"true","repair":false,"outputs":2,"x":210,"y":140,"wires":[["3c907a0a.bcd426","62b55154.4bc94"],["24fb291c.7a21e6"]],"outputLabels":["on","off"]},{"id":"3c907a0a.bcd426","type":"api-ca
[{"id":"737393cb.d6a5fc","type":"alexa-local","z":"1d226f17.2a7161","devicename":"Side Shade","inputtrigger":false,"x":110,"y":200,"wires":[["f8ca3f8f.3366f"]]},{"id":"959d2dff.609dc","type":"range","z":"1d226f17.2a7161","minin":"0","maxin":"100","minout":"0","maxout":"20000","action":"scale","round":false,"property":"delay","name":"","x":1100,"y":380,"wires":[["9d7d44fd.1b2c08","eb8bd310.0f545"]]},{"id":"f8ca3f8f.3366f","type":"switch","z":"1d226f17.2a7161","name":"on/off true","property":"on_off_command","propertyType":"msg","rules":[{"t":"true"},{"t":"false"}],"checkall":"true","repair":false,"outputs":2,"x":290,"y":200,"wires":[["a3a83ef3.66059"],["1a2d4472.6575ec"]]},{"id":"a3a83ef3.66059","type":"switch","z":"1d226f17.2a7161","name":"on/off","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"},{"t":"eq","v":"off","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":450,"y":200,"wires":[["f73b8673.40afa8"],["7f68bca2.036304"]]},{"id":"f73b8673.40afa8","type":"api-cal