question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

State text not showing anymore

See original GitHub issue

Hi, As the title says, the state text is not showing anymore, just the icon is displayed. Don’t know when it happened, it’s my lawn sprinkler valve which is “off” since September.

 - entity: switch.sonoff_1000xxxxxx
   name: false
   state_icons:
     'off': 'mdi:water-off-outline'
     'on': 'mdi:sprinkler-variant'
   state_styles:
     'off':
       icon:
         color: red
       text:
         color: red
     'on':
       icon:
         color: green
       text:
         color: green
   state_text:
     'off': Sprinkler off
     'on': Sprinkler on

Everything is updated to the last builds.

Thanks!

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
jcwilloxcommented, Feb 20, 2021

oh I forgot state_icon existed and it hasn’t been updated I need to fix that, thanks for bringing noticing that.

1reaction
jcwilloxcommented, Feb 19, 2021

Yeah, this is intended, I did it for backwards compatibility (there’s a more technical reason why I chose to do it that way). Basically state_text and state_styles always use the lowercase version of the state, I’ll make sure this is clearly mentioned in the docs. Alternatively, I might look into making it case-insensitive.

Read more comments on GitHub >

github_iconTop Results From Across the Web

State not showing in my text component React Native
I'm trying to initialize a Text component in a parent component with a certain state, but it's not showing up at all.
Read more >
‎Text messages not showing "read" even though I have all ...
On your Home screen, open the Messages app on your Galaxy. · In the top-right corner of the screen tap More (3 dots...
Read more >
Messages not showing - Apple Community
If you aren't receiving SMS messages on your Mac, make sure that Text Message Forwarding is enabled on your iPhone. Go to Settings...
Read more >
How to Fix Phone Not Receiving Text Messages - Alphr
Disable and enable iMessage. Navigate to “Settings -> Messages.” Tap on “iMessage” to toggle it off, repeat to turn it back on, choose...
Read more >
8 ways to fix iMessage if it's not working on your iPhone
If iMessage is not working when you text other iPhone users, you can try toggling your Wi-Fi on and off and doing the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found