Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make board-specific entities diagnostic #26

Merged
merged 1 commit into from
Jul 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion boards/m5stack-atoms3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ light:
- platform: status_led
output: status_output
name: "Status Led"
entity_category: diagnostic
internal: True

#G35=RGB WS2812C-2020
Expand All @@ -49,11 +50,13 @@ light:
chipset: ws2812
id: led
name: "Led"
entity_category: diagnostic

#G41=Button
binary_sensor:
- platform: gpio
name: Button
entity_category: diagnostic
pin:
number: GPIO41
inverted: true
Expand All @@ -64,4 +67,5 @@ binary_sensor:
- delayed_off: 10ms
on_press:
then:
- logger.log: Button Pressed
- logger.log:
format: Button Pressed
8 changes: 3 additions & 5 deletions boards/m5stack-nanoc6.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,10 @@ esp32:
CONFIG_USE_MINIMAL_MDNS: y
CONFIG_ESPTOOLPY_FLASHSIZE_4MB: y

external_components:
# fix logger compilation error until esphome 2024.5.x is released
- source: github://esphome/esphome@dev
components: [ logger ]

light:
- platform: status_led
name: "Status LED"
entity_category: diagnostic
pin: GPIO7

#G20=RGB WS2812
Expand All @@ -36,6 +32,7 @@ light:
rmt_channel: 1
chipset: ws2812
name: "RGB LED"
entity_category: diagnostic
power_supply: rgbpwr

power_supply:
Expand All @@ -49,6 +46,7 @@ power_supply:
binary_sensor:
- platform: gpio
name: Button
entity_category: diagnostic
pin:
number: GPIO9
inverted: true
Expand Down