Skip to content

Roomcard Temperature + Humidity #1183

Discussion options

You must be logged in to vote

#1181 thanks to the help of @antonio1475 I created my own custom room card.
The first entity is the humidity sensor and the second one is the temperature sensor

  variables:
    label_use_brightness: false
    label_use_temperature: false
    label_use_temperature_entity:
  label: |-
    [[[
      var label = ""
      
      if (variables.label_use_temperature ) {
        label += (states[variables.label_use_temperature_entity].attributes.current_temperature || states[variables.label_use_temperature_entity].attributes.temperature || states[variables.label_use_temperature_entity].state || entity?.attributes?.current_temperature || entity?.attributes?.temperature || entity?.state || '-') …

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@stefano-ita
Comment options

@stefano-ita
Comment options

@raider206
Comment options

Answer selected by Does-This-Work
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants