@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:
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
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