je place ici toute la conf pour HA, Frigate, esp etc.
pour installer le code (generé par esphome) si le wifi marche pas https://web.esphome.io/?dashboard_install puis aller sous esphome dans HA
code de l'esp substitutions: name: capteur-odeur friendly_name: Capteur odeurs
esphome:
name:
esp32: board: esp32dev framework: type: arduino
logger:
api:
ota:
- platform: esphome
improv_serial:
wifi:
ap: ssid: "Capteur-odeur" password: "231123112311" ssid: "gypaisSL en bas" password: "231123112311"
captive_portal:
dashboard_import: package_import_url: github://esphome/example-configs/esphome-web/esp32.yaml@main import_full_config: true
esp32_improv: authorizer: none
web_server: port: 80
sensor:
-
platform: adc pin: GPIO36 name: "Odeur 1" update_interval: 2s accuracy_decimals: 3 attenuation: 11db
-
platform: adc pin: GPIO39 name: "Odeur 2" update_interval: 2s accuracy_decimals: 3 attenuation: 11db
-
platform: adc pin: GPIO34 name: "Odeur 3" update_interval: 2s accuracy_decimals: 3 attenuation: 11db
-
platform: adc pin: GPIO35 name: "Odeur 4" update_interval: 2s accuracy_decimals: 3 attenuation: 11db
-
platform: dht pin: GPIO2 temperature: name: "Température odeur" humidity: name: "Humidité odeur" model: DHT22 update_interval: 10s
#output:
#switch:
text_sensor:
- platform: wifi_info ip_address: name: "IP Address"
button:
- platform: restart name: "Redémarrer ESP"