From 28fe62032bb8026f8b80287064e3c4ed8f6e06b7 Mon Sep 17 00:00:00 2001 From: Julien Cabillot Date: Tue, 25 Apr 2017 23:43:57 +0200 Subject: [PATCH] progression --- README.md | 19 ++++++++++--------- home-assistant/conf_light.d/alarmclock.yaml | 2 +- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 22558c2..663f8c2 100644 --- a/README.md +++ b/README.md @@ -1,23 +1,24 @@ Introduction ============ -Le but est simple : avoir un device qui pull du mqtt afin de surveiller un etat et une couleur. -Lorsque HA déclenche la commande "ON", on s'allume et on fait un breath sympas sur la couleur choisie. +Le but est simple : avoir un device qui pull du mqtt afin de surveiller un etat, une couleur et une luminosité max. +Lorsque HA déclenche la commande "ON", on s'allume et on fait un breath sympas sur la couleur choisie avec au max de brightness la valeur mqtt (utile à des fins de test). Lorsque HA demande le "OFF", on coupe tout. - +Au bout d'une heure, on coupe tout. + Un exemple de configuration pour home-assistant se trouve dans [configuration.yaml](home-assistant/configuration.yaml). - -Inspiré de ce site : http://ronmar.co/ha/2017/03/10/Ultimate-Alarm-Clock/ + https://community.home-assistant.io/t/creating-a-alarm-clock/410 + +Inspiré de ce site : http://ronmar.co/ha/2017/03/10/Ultimate-Alarm-Clock/ + https://community.home-assistant.io/t/creating-a-alarm-clock/410 +Comment récuperer le 5v d'un cable USB : http://www.instructables.com/id/Hack-that-holy-USB-cable/ +Avec 300 LEDs ont est à 7.5 Watts. Avancement ========== -WIP. -Le partie arduino fonctionne. -La partie home-assistant fonctionne, le reveil configuré est bien envoyé à l'arduino. +Fonctionnel. +Les parties arduino & HA sont ok. TODO: gitlab-ci : on peut checker la syntax en lancant un docker home-assistant !!! TODO: voir si c'est possible de changere la couleur de l'icone de la scene, avoir une icone bleue pour une couleur orange ... -TODO: tester en prod ^^ Matériel ======== diff --git a/home-assistant/conf_light.d/alarmclock.yaml b/home-assistant/conf_light.d/alarmclock.yaml index 19af295..3e8bbbd 100644 --- a/home-assistant/conf_light.d/alarmclock.yaml +++ b/home-assistant/conf_light.d/alarmclock.yaml @@ -1,6 +1,6 @@ - platform: "mqtt" name: "alarmclock" - retain: true + retain: false command_topic: "alarmclock/switch" state_topic: "alarmclock/status" rgb_command_topic: "alarmclock/color/switch"