esphome:
  name: espgaz32
  platformio_options:
    board_build.flash_mode: dio

esp32:
  board: esp32-s3-devkitc-1
   
logger:

api:
  password: !secret api_secret

ota:
  platform: esphome
  password: !secret ota_key

wifi:
  ssid:     !secret wireless_ssid
  password: !secret wireless_key
  domain:   !secret wireless_domain

  ap:
    ssid: "ESPgaz_Fallback"
    password: !secret ap_secret

captive_portal:

web_server:
  port: 80

time:
  - platform: sntp
    id: sntp_time
    servers: 
      - 193.190.198.10
#    timezone: "Europe/Brussels"
    on_time_sync:
      then:
        - logger.log: "NTP : Synchronized sntp clock"
        
mqtt:
  broker: domotic.home.cabestan.be
  username: espsalon
  password: !secret mqtt_espsalon


globals:
  - id: drops_absolute
    type: unsigned long int
    restore_value: yes
    initial_value: '0'


binary_sensor:
  - platform: gpio
    pin: 
      number: GPIO6
      mode:
        input: true
        pulldown: true
    name: "gaz volume add"
    id: gaz_volume_add

sensor:
  - platform: template
    name: gaz volume
    id: gazvolume
    unit_of_measurement: "m"
    icon: "mdi:gauge"
    lambda: return (3.02);
    accuracy_decimals: 0



