Browse Source

Update config packages.

pull/59/head
Maurice Makaay 3 years ago
parent
commit
50a4f76949
2 changed files with 11 additions and 6 deletions
  1. +7
    -2
      packages/core.yaml
  2. +4
    -4
      packages/ota_feedback.yaml

+ 7
- 2
packages/core.yaml View File

@ -1,5 +1,6 @@
# -------------------------------------------------------------------------- # --------------------------------------------------------------------------
# Xiaomi Mija Bedside Lamp 2 core configuration
# Substitutions as used by the configuration packages
# These can be overriden from the main device configuration file.
# -------------------------------------------------------------------------- # --------------------------------------------------------------------------
substitutions: substitutions:
@ -9,6 +10,10 @@ substitutions:
light_mode_text_sensor_name: ${friendly_name} Light Mode light_mode_text_sensor_name: ${friendly_name} Light Mode
default_transition_length: 800ms default_transition_length: 800ms
# --------------------------------------------------------------------------
# Core setup
# --------------------------------------------------------------------------
esphome: esphome:
name: ${name} name: ${name}
@ -35,7 +40,7 @@ api:
reboot_timeout: 0s reboot_timeout: 0s
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
# Hardware configuration
# Hardware setup
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
i2c: i2c:


+ 4
- 4
packages/ota_feedback.yaml View File

@ -8,7 +8,7 @@ ota:
on_begin: on_begin:
then: then:
- light.disco_on: - light.disco_on:
id: ${id_light}
id: my_light
red: 0% red: 0%
green: 0% green: 0%
blue: 100% blue: 100%
@ -23,7 +23,7 @@ ota:
on_end: on_end:
then: then:
- light.disco_on: - light.disco_on:
id: ${id_light}
id: my_light
red: 0% red: 0%
green: 100% green: 100%
blue: 0% blue: 0%
@ -33,11 +33,11 @@ ota:
on_error: on_error:
then: then:
- light.disco_on: - light.disco_on:
id: ${id_light}
id: my_light
red: 100% red: 100%
green: 0% green: 0%
blue: 0% blue: 0%
brightness: 2% brightness: 2%
- delay: 1s - delay: 1s
- light.disco_off: - light.disco_off:
id: ${id_light}
id: my_light

Loading…
Cancel
Save