i have upgraded this morning, changed the command_line sensors as in the docs, but the entities are not generated. i’m struggling for almost 3 hour now. no errors.
command_line:
- sensor:
name: main breaker decoded voltage
scan_interval: 5
command: 'python3 /config/python_scripts/base64_int.py {{ states("sensor.main_breaker_encoded_voltage") }} 2'
value_template: "{{ value | multiply(0.01) | round(2)}}"
it should generate an entity called “main breaker decoded voltage” with state equal to something like 239.5 (volts).
the entity is nowhere to be found after 2023.6 update.
do you guys have any idea?
Just tried your code without the command: ‘python3…’ (I use another command:) and the sensor “main breaker decoded voltage” is created.
Have you restarted HA after you have make the changes?
yes, i have restarted… right now i am creating another test entity and will open an issue. i will also post here.
LE: i think i found the issue. it seems the current command_line integration doesn’t like value_template. so i created antoher template sensor and added the state there. all i working fine so far. tested with 2 sensors out of 9.
template:
- sensor:
- name: main breaker voltage
unique_id: main breaker voltage
device_class: voltage
unit_of_measurement: V
state: "{{states('sensor.main_breaker_decoded_voltage') | multiply(0.1) | round(2)}}"
Hello,
We have any clarification for this one? Also with this update i have observe that the domain name homeassistant.local doesn’t work very well especially at add on section which doesn’t open with domain name but only with direct IP of Home Assistant.
How We have to make the syntax of the command line after the upgrade finally? I haven’t upgrade yet my HA. If someone has make it to work,I would like to give us an example with more than one switch commands!
Thank you!!