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

[Feature Request] Add thermostat temperature to screensaver / Alternative Screensaver Layout? #607

Closed
GravitySandwichh opened this issue Dec 3, 2022 · 28 comments
Assignees
Milestone

Comments

@GravitySandwichh
Copy link

FEATURE DESCRIPTION

Have the option to also show current temperature of a temp sensor on the screensaver

ADDITIONAL CONTEXT

I use my NSPanel as a thermostat, it would be great if i could see it's current temperature of any assigned sensor instead of just the outside weather.

PANEL / FIRMWARE VERION

EU

@joBr99
Copy link
Owner

joBr99 commented Dec 3, 2022

I'm personally showing the temperature in the upper right corner with an icon in case it's currently heating.

    screensaver:
      entity: weather.k3ll3r
      statusIcon1:
        entity: sensor.temp_wohn_humidity
        icon: 'ha:{{int(states("sensor.temp_wohn_humidity"))}}%'
      statusIcon2:
        entity: climate.wohnzimmer_boden
        icon: 'ha:{{iif(state_attr("climate.wohnzimmer_boden", "hvac_action")=="heat", "梅 ", "", "")}}{{int(state_attr("climate.wohnzimmer_boden","current_temperature"))}}°'

Alternatively you can replace one of the forecast icons like this:

    screensaver:
      entity: weather.k3ll3r
      weatherOverrideForecast4:
        entity: sensor.example_item
        name: name
        icon: lightbulb

@GravitySandwichh
Copy link
Author

Issue is that both of these currently are only able to show it smaller than the current weather right now. If possible, i would rather have a big temperature and a small weather.

@ArcadeMachinist
Copy link

I guess it fits into this feature request.

Is there a way to override "main" weather temperature?
I see all 4 forecasts are overridable, but main one is not.
I would really prefer current temperature being read from a local sensor.

@joBr99
Copy link
Owner

joBr99 commented Dec 4, 2022

@ArcadeMachinist
Create a Weather Template in HomeAssistant, this also has the benefit that you can use the weather widget with the local temp in the HA UI.

https://www.home-assistant.io/integrations/weather.template/

@LucaBors
Copy link

LucaBors commented Dec 12, 2022

Hi Jo i'm adding a request if possibile.
I'd like to have my personal temperature sensor in the screensaver replacing the "internet" weather temperature. Is this something possibile? I'm asking because the provider i'm using is not really reliable regarding temperature.
Thank you!

@soyxan
Copy link

soyxan commented Dec 12, 2022

Related to this, and considering that NSPanel was designed with thermostat capabilities that are being used by many of us (internal temperature sensor and relay outputs) I am also missing the option to show the status of the thermostat in the screensaver.
My suggestion will be a bit different, instead of altering the current screensaver (which for many cases is perfectly right) I suggest creating an alternative screensaver HMI screen showing the current time, big current temperature in the room and temperature setpoint. It is up to the user to select the standard screensaver or the "climate screensaver" from the apps.yaml file. What do you think?

@joBr99
Copy link
Owner

joBr99 commented Dec 15, 2022

Yeah, an alternative screensaver layout is definitly possible, I also thought about this.

Could somebody draw an "mock-up" to get some ideas?

I was thinking about a vertically divided screensaver with the time on the left side.

12 | other elements
34 | other elements

@joBr99
Copy link
Owner

joBr99 commented Dec 15, 2022

@LucaBors this is possible with a weather template

https://www.home-assistant.io/integrations/weather.template/

@joBr99 joBr99 changed the title [Feature Request] Add thermostat temperature to screensaver [Feature Request] Add thermostat temperature to screensaver / Alternative Screensaver Layout? Dec 15, 2022
@joBr99 joBr99 self-assigned this Dec 15, 2022
@joBr99
Copy link
Owner

joBr99 commented Dec 15, 2022

@andrei-micu-ro did your experiments with an alternative layout come to an result?

@andyxpert
Copy link

yeah, worked beautifully
I'm on mobile now, in a few hours I'll share some screenshots of my HMI
In a few words:

  • background with transparent items
  • temp/humid on screensaver
  • bigger fonts for some elements
  • some extra custom status icons at the top
  • plan on adding some state icons predefined for thermostats/climate and others (washer, dishwasher status, etc)
  • plan on adding a second screensaver for extra statuses

It's a pitty we can't have collaborative iterative work on HMI :(

@LucaBors
Copy link

this is super cool! work perfect! :)

@joBr99
Copy link
Owner

joBr99 commented Dec 15, 2022

And you can also use this template in the homeassistent dashboard :)

@nicolas-lang
Copy link

Hi,
I am not sure if this might be a separate Feature request, but I would consider it an "Alternative Screensaver Layout".
I think more flexibility for the screensavers would be nice I would love to see the option to replace the forecast with a "graph"

Graphs as a Screensaver

I am very conscious of the air pressure as it affects me quite a bit and I would love to have the possibility do display a simple bar or line graph like:
image

@joBr99
Copy link
Owner

joBr99 commented Jan 6, 2023

there are no graphs in nextion

we are working on a custom made card with a graph, that is drawn manually, but this will be limited to that card

@nicolas-lang
Copy link

Oh, I wasn't aware of that limitation.

What about displaying an externally pre-rendered image? (as a separate card and as a replacement of parts/all of the screensaver)

That should even give some additional flexibility for various other use-cases

@joBr99
Copy link
Owner

joBr99 commented Jan 6, 2023

nextion doesn't allow to transfer pictures to it on runtime

@andrei-micu-ro
Copy link

Graphs, niiiiiice :D

I had a tryout a while ago with some graph-like design where I had around 10 small sliders side-by-side, each linked to a custom template sensor in HA (which held the previous 10 values), but it doesn't look that nice, also you have to have automations in HA to update those "custom" sensors' values periodically (every 15-30 mins or so).
Scaling however is horrible as if you want better resolution you'll need to create more such sensors paired with the sliders.

Another idea was based on images and I had 10-20 "bold bullet" images that I moved around programmatically to trace somewhat of a graph - again it looked horror

@nicolas-lang - I suggest you install the Nextion Editor and play with it so you better understand what limitations exist and what you can do with it.
As stated, all images need to be pre-bundled in the image and you can't transfer anything new, you can only "play" with the objects bundled. The same goes for fonts (which need to be defined character-by-character and added to the image.

@joBr99
Copy link
Owner

joBr99 commented Jan 6, 2023

@andrei-micu-ro
https://github.com/joBr99/nspanel-lovelace-ui/wiki/ioBroker-Card-Definitionen-(Seiten)#cardchart-ab-ts-script-v370

It's acually already implemented on the HMI Side and on ioBroker; only missing implementation for AppDaemon/HomeAssistant and there is a second type of this card WIP.

@koffienl
Copy link

koffienl commented Jan 7, 2023

FEATURE DESCRIPTION

Have the option to also show current temperature of a temp sensor on the screensaver

ADDITIONAL CONTEXT

I use my NSPanel as a thermostat, it would be great if i could see it's current temperature of any assigned sensor instead of just the outside weather.

PANEL / FIRMWARE VERION

EU

Although I would like some bigger font, for now I just send the temperature as a notification to the nspanel with a automation.
I don't need the forecast at all, I just want to see the temperature (date and time is nice, but could be smaller).

  - service: mqtt.publish
    data:
      payload_template: >-
        notify~{{ states.sensor.woonkamer_temperatuur.state }} °C~Buiten: {{
        states.sensor.weather_temperature.state }} °C
      topic: cmnd/nspanel_woonkamer/CustomSend

@jiripaskov
Copy link

PLease any idea how to get single sensor number (temperature sensor) instead of the whole weather forecast? Is there right now some easy way how to show bigger temperature number under the time and date? (on screensaver). Sorry but can´t realize hot to change weather template to show the defined sensor temperature. Thanks.

@koffienl
Copy link

koffienl commented Jan 8, 2023

PLease any idea how to get single sensor number (temperature sensor) instead of the whole weather forecast? Is there right now some easy way how to show bigger temperature number under the time and date? (on screensaver). Sorry but can´t realize hot to change weather template to show the defined sensor temperature. Thanks.

Like I said; just send a notification to the nspanel. It will fully overwrite the forecast on the screensaver.

description: ""
trigger:
  - platform: time_pattern
    minutes: /1
condition: []
action:
  - service: mqtt.publish
    data:
      payload_template: >-
        notify~{{ states.sensor.woonkamer_temperatuur.state }} °C~Buiten: {{
        states.sensor.weather_temperature.state }} °C
      topic: cmnd/nspanel_woonkamer/CustomSend
  - service: mqtt.publish
    data:
      payload_template: >-
        notify~{{ states.sensor.woonkamer_temperatuur.state }} °C~Buiten: {{
        states.sensor.weather_temperature.state }} °C
      topic: cmnd/nspanel_hal/CustomSend
    enabled: false
mode: single

Perhaps you can play with the alternative notification?
#510

@numerobis08
Copy link

numerobis08 commented Jan 10, 2023

@ArcadeMachinist Create a Weather Template in HomeAssistant, this also has the benefit that you can use the weather widget with the local temp in the HA UI.

https://www.home-assistant.io/integrations/weather.template/

Hello i tried to do it without success can you provide me more imput on how to make it ?
i tried the following code in the configuration.yaml file
i would like to override only the actual temperature

weather:

  • platform: template
    name: "My Weather Station"
    condition_template: "{{ states('weather.') }}"
    temperature_template: "{{ states('sensor.capteur_fenetre_device_temperature') | float }}"
    humidity_template: "{{ states('sensor.humidity') | float }}"
    forecast_template: "{{ state_attr('weather.my_region', 'forecast') }}"

@joBr99
Copy link
Owner

joBr99 commented Jan 10, 2023

Use the actual name of your weather entity; replace weather. and weather.my_region with your weather entity. (You've already used that in apps yaml)

@numerobis08
Copy link

It worked thanks :-)

@jiripaskov
Copy link

Thanks but sorry. I didn´t mean just to show only temperature. I would like to show standard screensaver with time and date but this sensor temperature in the size of weather icons (instead of weather). Notification will show only the notification text...

@joBr99
Copy link
Owner

joBr99 commented Jan 20, 2023

image

Slightly changed alternative screensaver layout to get space for two big temperatures.

@joBr99 joBr99 added this to the 3.9.X milestone Jan 20, 2023
@LucaBors
Copy link

image

Slightly changed alternative screensaver layout to get space for two big temperatures.

Oh, this is cool! How to use it? Need to update to beta? Thank you.

@joBr99 joBr99 closed this as completed Jan 21, 2023
@joBr99
Copy link
Owner

joBr99 commented Jan 22, 2023

Config Example:

    screensaver:
      doubleTapToUnlock: True
      entities:
        - entity: weather.k3ll3r
        - entity: weather.k3ll3r
          type: 0
        - entity: weather.k3ll3r
          type: 1
        - entity: weather.k3ll3r
          type: 2
        - entity: weather.k3ll3r
          type: 3
        - entity: sensor.temp_wohn_temperature
          icon: mdi:home-thermometer-outline

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

No branches or pull requests