-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from yoziru/custom-esphome-component
new custom component + m5stack IR unit + NanoC6 board
- Loading branch information
Showing
21 changed files
with
353 additions
and
289 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ jobs: | |
matrix: | ||
file: | ||
- argoclima-ir-m5stack-atoms3.yml | ||
- argoclima-ir-m5stack-nanoc6.yml | ||
steps: | ||
- uses: actions/[email protected] | ||
- name: Mock secrets.yaml from example | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
substitutions: | ||
ha_room_temperature_sensor: sensor.your_ha_sensor_temperature | ||
|
||
climate: | ||
- id: !extend ac | ||
receiver_id: ir_receiver | ||
|
||
packages: | ||
base: !include packages/base.yml | ||
device_base: !include boards/m5stack-atoms3-ir.yml | ||
|
||
dashboard_import: | ||
package_import_url: github://yoziru/esphome-argoclima-ir/argoclima-ir-m5stack-atoms3-ir.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
substitutions: | ||
ha_room_temperature_sensor: sensor.your_ha_sensor_temperature | ||
|
||
climate: | ||
- id: !extend ac | ||
receiver_id: ir_receiver | ||
|
||
packages: | ||
base: !include packages/base.yml | ||
device_base: !include boards/m5stack-nanoc6-ir.yml | ||
|
||
dashboard_import: | ||
package_import_url: github://yoziru/esphome-argoclima-ir/argoclima-ir-m5stack-nanoc6-ir.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
substitutions: | ||
ha_room_temperature_sensor: sensor.your_ha_sensor_temperature | ||
|
||
packages: | ||
base: !include packages/base.yml | ||
device_base: !include boards/m5stack-nanoc6.yml | ||
|
||
dashboard_import: | ||
package_import_url: github://yoziru/esphome-argoclima-ir/argoclima-ir-m5stack-nanoc6.yml |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
esp32: | ||
board: esp32-s3-devkitc-1 | ||
variant: esp32s3 | ||
flash_size: 8MB | ||
framework: | ||
type: esp-idf | ||
version: 5.3.0 | ||
platform_version: 6.8.1 | ||
|
||
external_components: | ||
# fix: Change default carrier_frequency to valid value for ESP-IDF 5.x | ||
- components: [remote_transmitter] | ||
source: github://pr#7176 | ||
|
||
# Output that blinks the LED | ||
output: | ||
- platform: template | ||
id: status_output | ||
type: binary | ||
write_action: | ||
- if: | ||
condition: | ||
lambda: return (state); | ||
then: | ||
- light.turn_on: | ||
id: led | ||
brightness: 70% | ||
red: 100% | ||
green: 0% | ||
blue: 0% | ||
else: | ||
- light.turn_off: led | ||
|
||
light: | ||
# Enable status LED | ||
- platform: status_led | ||
output: status_output | ||
name: "Status Led" | ||
internal: True | ||
entity_category: diagnostic | ||
|
||
#G35=RGB WS2812C-2020 | ||
- platform: esp32_rmt_led_strip | ||
rgb_order: GRB | ||
pin: 35 | ||
num_leds: 4 | ||
# RMT 0 channels will be occupied by IR | ||
rmt_channel: 1 | ||
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 | ||
mode: | ||
input: true | ||
pullup: true | ||
filters: | ||
- delayed_off: 10ms | ||
|
||
# M5Stack Mini Infrared Emitter & Receiver Unit (U002) | ||
remote_transmitter: | ||
carrier_duty_percent: 50% | ||
id: "ir_transmitter" | ||
pin: | ||
number: GPIO2 | ||
mode: | ||
output: true | ||
|
||
remote_receiver: | ||
id: ir_receiver | ||
rmt_channel: 4 | ||
pin: | ||
number: GPIO1 | ||
inverted: true | ||
mode: | ||
input: true | ||
pullup: true | ||
dump: pronto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
esp32: | ||
board: esp32-c6-devkitm-1 | ||
variant: esp32c6 | ||
flash_size: 4MB | ||
framework: | ||
type: esp-idf | ||
version: 5.3.0 | ||
platform_version: 6.8.1 | ||
sdkconfig_options: | ||
CONFIG_OPENTHREAD_ENABLED: n | ||
CONFIG_ENABLE_WIFI_STATION: y | ||
CONFIG_USE_MINIMAL_MDNS: y | ||
CONFIG_ESPTOOLPY_FLASHSIZE_4MB: y | ||
|
||
external_components: | ||
# fix: Change default carrier_frequency to valid value for ESP-IDF 5.x | ||
- components: [remote_transmitter] | ||
source: github://pr#7176 | ||
|
||
light: | ||
- platform: status_led | ||
name: "Status LED" | ||
entity_category: diagnostic | ||
pin: GPIO7 | ||
|
||
#G20=RGB WS2812 | ||
- platform: esp32_rmt_led_strip | ||
rgb_order: GRB | ||
pin: GPIO20 | ||
num_leds: 4 | ||
# RMT 0 channels will be occupied by IR | ||
rmt_channel: 1 | ||
chipset: ws2812 | ||
name: "RGB LED" | ||
entity_category: diagnostic | ||
power_supply: rgbpwr | ||
|
||
power_supply: | ||
- id: 'rgbpwr' | ||
enable_on_boot: true | ||
pin: GPIO19 | ||
enable_time: 10ms | ||
keep_on_time: 10ms | ||
|
||
#G9=Button | ||
binary_sensor: | ||
- platform: gpio | ||
name: Button | ||
entity_category: diagnostic | ||
pin: | ||
number: GPIO9 | ||
inverted: true | ||
mode: | ||
input: true | ||
pullup: true | ||
filters: | ||
- delayed_off: 10ms | ||
|
||
# M5Stack Mini Infrared Emitter & Receiver Unit (U002) | ||
remote_transmitter: | ||
carrier_duty_percent: 50% | ||
id: "ir_transmitter" | ||
pin: | ||
number: GPIO2 | ||
mode: | ||
output: true | ||
|
||
remote_receiver: | ||
id: ir_receiver | ||
rmt_channel: 3 | ||
# Settings to optimize recognition of RF devices | ||
tolerance: 50% | ||
filter: 250us | ||
idle: 4ms | ||
pin: | ||
number: GPIO1 | ||
inverted: true | ||
mode: | ||
input: true | ||
pullup: true | ||
dump: | ||
- pronto | ||
- raw |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
esp32: | ||
board: esp32-c6-devkitm-1 | ||
variant: esp32c6 | ||
flash_size: 4MB | ||
framework: | ||
type: esp-idf | ||
version: 5.3.0 | ||
platform_version: 6.8.1 | ||
sdkconfig_options: | ||
CONFIG_OPENTHREAD_ENABLED: n | ||
CONFIG_ENABLE_WIFI_STATION: y | ||
CONFIG_USE_MINIMAL_MDNS: y | ||
CONFIG_ESPTOOLPY_FLASHSIZE_4MB: y | ||
|
||
external_components: | ||
# fix: Change default carrier_frequency to valid value for ESP-IDF 5.x | ||
- components: [remote_transmitter] | ||
source: github://pr#7176 | ||
|
||
light: | ||
- platform: status_led | ||
name: "Status LED" | ||
entity_category: diagnostic | ||
pin: GPIO7 | ||
|
||
#G20=RGB WS2812 | ||
- platform: esp32_rmt_led_strip | ||
rgb_order: GRB | ||
pin: GPIO20 | ||
num_leds: 4 | ||
# RMT 0 channels will be occupied by IR | ||
rmt_channel: 1 | ||
chipset: ws2812 | ||
name: "RGB LED" | ||
entity_category: diagnostic | ||
power_supply: rgbpwr | ||
|
||
power_supply: | ||
- id: "rgbpwr" | ||
enable_on_boot: true | ||
pin: GPIO19 | ||
enable_time: 10ms | ||
keep_on_time: 10ms | ||
|
||
#G9=Button | ||
binary_sensor: | ||
- platform: gpio | ||
name: Button | ||
entity_category: diagnostic | ||
pin: | ||
number: GPIO9 | ||
inverted: true | ||
mode: | ||
input: true | ||
pullup: true | ||
filters: | ||
- delayed_off: 10ms | ||
|
||
remote_transmitter: | ||
carrier_duty_percent: 50% | ||
id: "ir_transmitter" | ||
pin: GPIO3 |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.