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

Add night mode switch #97

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

Add night mode switch #97

wants to merge 9 commits into from

Conversation

joey-90
Copy link

@joey-90 joey-90 commented Nov 13, 2023

Add switch to dim light at night, to dim the listen light at night useful if device is in bedroom etc.

@joey-90 joey-90 marked this pull request as draft November 16, 2023 19:24
@joey-90
Copy link
Author

joey-90 commented Nov 16, 2023

I think I fat fingered the wrong button, also thanks for catching my mistake. I made an error copying across my code.

@joey-90 joey-90 marked this pull request as ready for review November 16, 2023 19:28
@kevireilly
Copy link

Just noticed this pull request which is similar to a feature that I've just added for the S3 Box devices: #126

Curious if maybe the nomenclature should potentially be the same for both since the concepts are similar? Also, by chance know if the green LED can be turned off?

@Doctor-JaKe
Copy link

Doctor-JaKe commented Mar 9, 2024

Could You also please add the values for :

            red: 100%
            green: 89%
            blue: 71%
            brightness: 60%
            effect: none

to the configurable / options aue in Device UI HA settings ?

To configure these main/default settings for reset_led script.
Because I would like to defer and see when the Use_wake_word enabled by the cl of the light : green = use_wake-word enabled and ready to use/device and connnected to WiFi & HA.
white led/light = use_wake-word DISabled (in the living room when the tv/music is on and the button (on the Atom Echo) has to be pushed) but its ready to use/device and connnected to WiFi & HA.

Now I do it by this automation & scene with the right brightnessa red,green,bluttings in Home assistant:

alias: M5Stack NR1 light Brightness above 30
description: ""
trigger:

  • platform: numeric_state
    entity_id:
    • light.m5stack_atom_echo_82b434_m5stack_atom_echo_nr1_82b434
      attribute: brightness
      above: 30
  • platform: state
    entity_id:
    • binary_sensor.m5stack_atom_echo_82b434_assist_in_progress
      from: "on"
      to: "off"
      for:
      hours: 0
      minutes: 0
      seconds: 5
  • platform: state
    entity_id:
    • switch.m5stack_atom_echo_82b434_use_listen_light
      from: "off"
      to: "on"
      for:
      hours: 0
      minutes: 0
      seconds: 3
  • platform: state
    entity_id:
    • switch.m5stack_atom_echo_82b434_use_wake_word
      for:
      hours: 0
      minutes: 0
      seconds: 5
      from: "off"
      to: "on"
  • platform: state
    entity_id:
    • light.m5stack_atom_echo_82b434_m5stack_atom_echo_nr1_82b434
      attribute: rgb_color
      condition:
  • condition: state
    entity_id: binary_sensor.m5stack_atom_echo_nr_a04f44_assist_in_progress
    state: "off"
  • condition: or
    conditions:
    • condition: state
      entity_id: switch.m5stack_atom_echo_82b434_use_wake_word
      state: "on"
    • condition: state
      entity_id: light.m5stack_atom_echo_82b434_m5stack_atom_echo_nr1_82b434
      state: "on"
    • condition: state
      entity_id: switch.m5stack_atom_echo_82b434_use_listen_light
      state: "on"
  • condition: numeric_state
    entity_id: light.m5stack_atom_echo_82b434_m5stack_atom_echo_nr1_82b434
    attribute: brightness
    above: 30
    action:
  • service: scene.turn_on
    metadata: {}
    target:
    entity_id: scene.m5stack_nr_1_light_lower_brightness_and_green_color
    mode: parallel
    max: 11

But its still blinks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants