joBr99 / nspanel-lovelace-ui

Custom Firmware for NsPanel with the design of HomeAssistant's lovelace UI in mind, works with Tasmota.
GNU General Public License v3.0
872 stars 188 forks source link

[Feature Request] - Text String rather than StatusIcon #1102

Closed leacho73 closed 9 months ago

leacho73 commented 9 months ago

FEATURE DESCRIPTION

The ability to display a text string rather than a statusicon for [statusIcon1] and [statusIcon2]

ADDITIONAL CONTEXT

A text string rather than an icon would be helpful when labelling what the push buttons do when pressed - for example 'Bedroom Light'

PANEL / FIRMWARE VERION

EU

rossi75 commented 9 months ago

DSC_1451 Still possible

  # ------------------------------
  # 2x Stati bei den Buttons
  statusIcon2:
    entity: input_text.nina_alarmstufe
    icon: 'ha:{{ state_attr("binary_sensor.warning_dusseldorf_stadt_1","headline")}}'
    font: small
    color:
      "Extreme": [255, 0, 0]                                                # rot
      "Severe": [255, 69, 0]                                                # orange
      "Moderate": [255, 255, 0]                                             # gelb
      "Minor": [0, 255, 0]                                                  # grün
      "Unknown": [10, 10, 10]                                                  # schwarz
      "Safe": [10, 10, 10]                                           
leacho73 commented 9 months ago

@rossi75 can you share your code on how you achieved this please - if it's already possible I'll close this FR 😀

rossi75 commented 9 months ago

@rossi75 can you share your code on how you achieved this please - if it's already possible I'll close this FR 😀

Edited my post

leacho73 commented 9 months ago

@rossi75 can you share your code on how you achieved this please - if it's already possible I'll close this FR 😀

Edited my post

This is excellent - thank you @rossi75

rossi75 commented 9 months ago

The 0, 10, 10 are only for debug purposes at the Moment. Will be changed to 0, 0, 0 as soon as all works fine