Bonsoir,
voici mon premier projet ESP32 afin de visualiser le journée EDF-TEMPO du jour, HC ou HP, et la journée du lendemain.
Tarifs : Bleu, Blanc, Rouge, donc leds de la couleur sur la partie haute.
1 led HP, 2 leds HC (ici HC Blanc)
En dessous, une ligne pour avertir de la couleur du lendemain:
Bleu, Blanc, Rouge, ce qui me permet de prévoir mes machines, charges VE au cas où…
Orange quand la journée n’est pas encore définie.
- ESP32: 2€58
- 10 x Leds (il m’en reste bcp pour d’autres projets): 0€14
- 3 x Résistances 220 ohms (idem): 0€03
- Alimention + cable USB : environ 3€00
Total : entre 5€ et 6€
Programmation sur Node-Red
Affichage sur HA
Liens :
- ESP: 0.46€ 96% de réduction|Carte de développement ESP32 sans fil WiFi Bluetooth module ultra faible consommation d'énergie touristes Core 30Pin ESP32 WROOM 32S 32D ESP 32 | AliExpress
- Leds : 0.46€ 84% de réduction|Kit assressentide lumière LED pour bricolage, kit électronique, blanc, jaune, rouge, vert, bleu, 3mm, 5mm, 100 pièces | AliExpress
- Résistances: https://fr.aliexpress.com/item/1005005669886834.html?spm=a2g0o.order_list.order_list_main.46.21ef5e5bdqeXMj&gatewayAdapt=glo2fra
Je n’utilise que 3 résistances, car chacune d’elles ne voit passer qu’une intensité, car une seule led ne sera allumée dans la série. Si les leds vous paraissent trop ‹ brillantes ›, augmenter l’impédance des résistances.
esp-tempo.yaml
esphome:
name: esp-tempo
friendly_name: esp-tempo
esp32:
board: esp32dev
framework:
type: arduino
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: "mRRvO/+ZXyb8+Zz1IfCfvIZC6oWqxO7JmWqaZmHn+Y4="
ota:
password: "202acb2862e631aa837930903087aa5d"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Esp-Tempo Fallback Hotspot"
password: "hocSgP8ZrLuZ"
captive_portal:
# Example configuration entry
light:
- platform: binary
name: "BLEU HC"
output: light_output13
- platform: binary
name: "BLEU HP"
output: light_output12
- platform: binary
name: "BLANC HC"
output: light_output14
- platform: binary
name: "BLANC HP"
output: light_output27
- platform: binary
name: "ROUGE HC"
output: light_output26
- platform: binary
name: "ROUGE HP"
output: light_output25
- platform: binary
name: "DEMAIN BLEU"
output: light_output33
- platform: binary
name: "DEMAIN BLANC"
output: light_output32
- platform: binary
name: "DEMAIN ROUGE"
output: light_output15
- platform: binary
name: "DEMAIN INCONNU"
output: light_output02
output:
- id: light_output13
platform: gpio
pin: GPIO13
- id: light_output12
platform: gpio
pin: GPIO12
- id: light_output14
platform: gpio
pin: GPIO14
- id: light_output27
platform: gpio
pin: GPIO27
- id: light_output26
platform: gpio
pin: GPIO26
- id: light_output25
platform: gpio
pin: GPIO25
- id: light_output33
platform: gpio
pin: GPIO33
- id: light_output32
platform: gpio
pin: GPIO32
- id: light_output15
platform: gpio
pin: GPIO15
- id: light_output02
platform: gpio
pin: GPIO02esphome:
name: esp-tempo
friendly_name: esp-tempo
esp32:
board: esp32dev
framework:
type: arduino
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: "mRRvO/+ZXyb8+Zz1IfCfvIZC6oWqxO7JmWqaZmHn+Y4="
ota:
password: "202acb2862e631aa837930903087aa5d"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Esp-Tempo Fallback Hotspot"
password: "hocSgP8ZrLuZ"
captive_portal:
# Example configuration entry
light:
- platform: binary
name: "BLEU HC"
output: light_output13
- platform: binary
name: "BLEU HP"
output: light_output12
- platform: binary
name: "BLANC HC"
output: light_output14
- platform: binary
name: "BLANC HP"
output: light_output27
- platform: binary
name: "ROUGE HC"
output: light_output26
- platform: binary
name: "ROUGE HP"
output: light_output25
- platform: binary
name: "DEMAIN BLEU"
output: light_output33
- platform: binary
name: "DEMAIN BLANC"
output: light_output32
- platform: binary
name: "DEMAIN ROUGE"
output: light_output15
- platform: binary
name: "DEMAIN INCONNU"
output: light_output02
output:
- id: light_output13
platform: gpio
pin: GPIO13
- id: light_output12
platform: gpio
pin: GPIO12
- id: light_output14
platform: gpio
pin: GPIO14
- id: light_output27
platform: gpio
pin: GPIO27
- id: light_output26
platform: gpio
pin: GPIO26
- id: light_output25
platform: gpio
pin: GPIO25
- id: light_output33
platform: gpio
pin: GPIO33
- id: light_output32
platform: gpio
pin: GPIO32
- id: light_output15
platform: gpio
pin: GPIO15
- id: light_output02
platform: gpio
pin: GPIO02
esp-tempo.yaml
esphome:
name: esp-tempo
friendly_name: esp-tempo
esp32:
board: esp32dev
framework:
type: arduino
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: "mRRvO/+ZXyb8+Zz1IfCfvIZC6oWqxO7JmWqaZmHn+Y4="
ota:
password: "202acb2862e631aa837930903087aa5d"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Esp-Tempo Fallback Hotspot"
password: "hocSgP8ZrLuZ"
captive_portal:
# Example configuration entry
light:
- platform: binary
name: "BLEU HC"
output: light_output13
- platform: binary
name: "BLEU HP"
output: light_output12
- platform: binary
name: "BLANC HC"
output: light_output14
- platform: binary
name: "BLANC HP"
output: light_output27
- platform: binary
name: "ROUGE HC"
output: light_output26
- platform: binary
name: "ROUGE HP"
output: light_output25
- platform: binary
name: "DEMAIN BLEU"
output: light_output33
- platform: binary
name: "DEMAIN BLANC"
output: light_output32
- platform: binary
name: "DEMAIN ROUGE"
output: light_output15
- platform: binary
name: "DEMAIN INCONNU"
output: light_output02
output:
- id: light_output13
platform: gpio
pin: GPIO13
- id: light_output12
platform: gpio
pin: GPIO12
- id: light_output14
platform: gpio
pin: GPIO14
- id: light_output27
platform: gpio
pin: GPIO27
- id: light_output26
platform: gpio
pin: GPIO26
- id: light_output25
platform: gpio
pin: GPIO25
- id: light_output33
platform: gpio
pin: GPIO33
- id: light_output32
platform: gpio
pin: GPIO32
- id: light_output15
platform: gpio
pin: GPIO15
- id: light_output02
platform: gpio
pin: GPIO02esphome:
name: esp-tempo
friendly_name: esp-tempo
esp32:
board: esp32dev
framework:
type: arduino
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: "mRRvO/+ZXyb8+Zz1IfCfvIZC6oWqxO7JmWqaZmHn+Y4="
ota:
password: "202acb2862e631aa837930903087aa5d"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Esp-Tempo Fallback Hotspot"
password: "hocSgP8ZrLuZ"
captive_portal:
# Example configuration entry
light:
- platform: binary
name: "BLEU HC"
output: light_output13
- platform: binary
name: "BLEU HP"
output: light_output12
- platform: binary
name: "BLANC HC"
output: light_output14
- platform: binary
name: "BLANC HP"
output: light_output27
- platform: binary
name: "ROUGE HC"
output: light_output26
- platform: binary
name: "ROUGE HP"
output: light_output25
- platform: binary
name: "DEMAIN BLEU"
output: light_output33
- platform: binary
name: "DEMAIN BLANC"
output: light_output32
- platform: binary
name: "DEMAIN ROUGE"
output: light_output15
- platform: binary
name: "DEMAIN INCONNU"
output: light_output02
output:
- id: light_output13
platform: gpio
pin: GPIO13
- id: light_output12
platform: gpio
pin: GPIO12
- id: light_output14
platform: gpio
pin: GPIO14
- id: light_output27
platform: gpio
pin: GPIO27
- id: light_output26
platform: gpio
pin: GPIO26
- id: light_output25
platform: gpio
pin: GPIO25
- id: light_output33
platform: gpio
pin: GPIO33
- id: light_output32
platform: gpio
pin: GPIO32
- id: light_output15
platform: gpio
pin: GPIO15
- id: light_output02
platform: gpio
pin: GPIO02
Je récupère sur NOD RED les binary light
Je récupère sur NODE RED les binary light
- BLEU HC ou HP
- BLANC HC ou HP
- ROUGE HC ou HP
- DEMAIN BLEU / BLANC / ROUGE / INCONNU
- BLEU HC ou HP
- BLANC HC ou HP
- ROUGE HC ou HP
- DEMAIN BLEU / BLANC / ROUGE / INCONNU