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

[BUG] Force mode not working (ex.: 2 = clock) #204

Closed
popy2k14 opened this issue Jan 27, 2024 · 6 comments
Closed

[BUG] Force mode not working (ex.: 2 = clock) #204

popy2k14 opened this issue Jan 27, 2024 · 6 comments
Labels
help wanted Extra attention is needed question Further information is requested

Comments

@popy2k14
Copy link

Question

I have the following HA automation when someone enters the room:

  • display on
  • del screen *
  • switch_date off (see yaml code)

So after entering the room, the time was always shown to the user on v1.
Have now migrated from EspHoMaTriXv1 to v2.

An this is not working, sometimes it shows the date instead of the time.

How can i force the clock on v2?
I know there is a "force_screen" service, but what's the icon_name of the clock?

yaml:
`

  • platform: template
    name: "Datum"
    id: switch_date
    icon: mdi:calendar
    restore_mode: RESTORE_DEFAULT_ON
    lambda: |-
    if (id(date_enable)) {
    return true;
    } else {
    return false;
    }
    turn_on_action:
    lambda: |-
    if (!id(night_enable)) {
    id(date_enable) = true;
    id(rgb8x32)->set_show_date(true);
    }
    turn_off_action:
    lambda: |-
    if (!id(night_enable)) {
    id(date_enable) = false;
    id(rgb8x32)->set_show_date(false);
    }
    `

Additional information

  • used Hardware:
    • ESP32
    • EspHoMaTriXv2 version: [e.g. 2023.7.0]
@popy2k14 popy2k14 added help wanted Extra attention is needed question Further information is requested labels Jan 27, 2024
@lubeda
Copy link
Owner

lubeda commented Jan 27, 2024

You can "force" screens, see Mode overview


service: esphome.ulanzi_force_screen
data:
  icon_name: "*"
  mode: 2

@popy2k14
Copy link
Author

popy2k14 commented Jan 27, 2024

thx for the hint, tried now with:

service: esphome.pixel_clock_wz_force_screen
data:
  icon_name: "*"
  mode: 2

as you suggested.
Sadly i does'nt work.
When i send the above force_screen cmd when the clock is on another screen, i just ignores it.
But when i send a force to another icon_name, it works:

service: esphome.pixel_clock_wz_force_screen
data:
  icon_name: tempc
  mode: 5

Any hint's what i am doing wrong ?
thx

@lubeda
Copy link
Owner

lubeda commented Jan 27, 2024

This is probably a bug

@popy2k14 popy2k14 changed the title [QUESTION] Force clock screen (without date) [BUG] Force mode not working (ex.: 2 = clock) Jan 27, 2024
@popy2k14
Copy link
Author

Ok thx.
I have changed the title to a [BUG].

@andrewjswan
Copy link

andrewjswan commented Jan 29, 2024

In my opinion, this has already been fixed in 2023.9.1 and, accordingly, in 2024.1.0

@popy2k14
Copy link
Author

@andrewjswan thx for the hint. I can confirm that 2023.9.1 fixed this issue.

Because of upcoming release, I am closing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants