Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95919

How to rename a state

$
0
0

@Guilherme_Gimenes wrote:

Hi guys, I’m kinda new, and I would appreciate your help.

I have a broadlink S1C alarm kit, which I successfully added to my HA. The issue, The state is open or closed! they are working fine, but I would like to see the states in my language (portuguese). Instead of open, Id like to see “aberto” and “fechado” to closed.

how I added this sensor? few lines in my configurarion.yaml and I got a “py file” and added to my custom_components folder.

This is how I see:
windows

This is my configuration.yaml, about the sensors: (I have a broadklink rm pro temperature sensor, my raspberry and the s1c alarm kit (I just need the door sensors):

And this is my customize.yaml, which I only changed the icon and put a friendly name
cust_sensor

I tried the code below 100 times, different ways but still nothing. No errors but no functional either.
sensor:

  • platform: template
    sensors:
    window_1:
    friendly_name: “Window 1”
    value_template: >-
    {% if is_state(‘sensor.broadlink_s1c_janela_principal’, ‘open’) %}
    Aberto
    {% else %}
    Fechado
    {% endif %}

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 95919

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>