autohuttli/wican.yaml

84 lines
1.5 KiB
YAML
Raw Permalink Normal View History

2025-08-28 10:46:00 +02:00
esphome:
name: ${device_id}
name_add_mac_suffix: true
friendly_name: "${device_name}"
project:
name: "${project_name}"
version: "${project_version}"
esp32:
variant: esp32c3
framework:
type: esp-idf
api:
encryption:
key: !secret api_key
output:
- id: blue_led_out
platform: gpio
pin: 7
- id: green_led_out
platform: gpio
pin:
number: 8
inverted: true
- id: yellow_led_out
platform: gpio
pin:
number: 9
inverted: true
light:
- platform: binary
id: blue_led
name: "Blue LED"
output: blue_led_out
internal: True
2025-08-28 10:46:00 +02:00
- platform: binary
id: green_led
name: "Green LED"
output: green_led_out
internal: True
2025-08-28 10:46:00 +02:00
- platform: binary
id: yellow_led
name: "Yellow LED"
output: yellow_led_out
internal: True
2025-08-28 10:46:00 +02:00
canbus:
- platform: esp32_can
id: can0
tx_pin: 0
rx_pin: 3
bit_rate: 500kbps
can_id: 0
switch:
- platform: gpio
id: can_enable
name: "CAN interface enable"
pin:
number: 6
inverted: true
2025-08-28 20:26:49 +02:00
restore_mode: ALWAYS_ON
internal: True
2025-08-28 20:26:49 +02:00
2025-08-28 10:46:00 +02:00
sensor:
- platform: adc
id: starter_battery
name: "Starter battery voltage"
pin: 4
attenuation: 11db
filters:
- multiply: 7.25 # 116 / 16
- sliding_window_moving_average:
window_size: 5
send_every: 5
send_first_at: 1
update_interval: 5s
unit_of_measurement: V
accuracy_decimals: 1
device_class: voltage
state_class: measurement