Skip to content

Commit

Permalink
Merge pull request #26 from yoziru/m5stack-board-entities-diagnostic
Browse files Browse the repository at this point in the history
make board-specific entities diagnostic
  • Loading branch information
yoziru authored Jul 25, 2024
2 parents 04d5b28 + 06fb5d4 commit 9e42ec7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
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

0 comments on commit 9e42ec7

Please sign in to comment.