Hello,
When a setup several binary_sensors in configuration.yaml
only the few first ones are rendered, the others are just ignored…
No error message in logs nor in config checking.
i know i’m passing booleans to binary_sensor, but it usualy works…
And why the first ones are working and not the others, it looks like if HA stops rendering the next ones ?
Here is the configuration.yaml
template:
- binary_sensor:
- name: onkyo_mute_state
unique_id: onkyo_mute_state
state: "{{ states('input_text.onkyo_amtqstn_response') == '01' }}"
- name: onkyo_preset_1
unique_id: onkyo_preset_1
state: "{{ states('input_text.onkyo_prsqstn') == '1' }}"
- name: onkyo_preset_2
unique_id: onkyo_preset_2
state: "{{ states('input_text.onkyo_prsqstn') == '2' }}"
- name: onkyo_preset_3
unique_id: onkyo_preset_3
state: "{{ states('input_text.onkyo_prsqstn') == '3' }}"
- name: onkyo_preset_4
unique_id: onkyo_preset_4
state: "{{ states('input_text.onkyo_prsqstn') == '4' }}"
- name: onkyo_preset_5
unique_id: onkyo_preset_5
state: "{{ states('input_text.onkyo_prsqstn') == '5' }}"
Thanks for any help
Eddy
PS: The script that sets the input_text is calling when needed by automation and is working fine:
onkyo_prsqstn:
variables:
temp: ""
sequence:
#----------------------------------------
- service: shell_command.onkyo_command
data:
cmd: PRSQSTN
response_variable: onkyo_response
#----------------------------------------
- if: "{{ onkyo_response['returncode'] == 0 }}"
then:
- service: input_text.set_value
target:
entity_id: input_text.onkyo_prsqstn
data:
value: >
{% set temp = onkyo_response['stdout'] %}
{{ temp.split("PRS")[1] | int(base=16) }}
#----------------------------------------
mode: single