My code was working fine until the update. Now it trows an error:
2022-10-06 12:13:42.314 ERROR (SyncWorker_5) [homeassistant.components.command_line] Command failed (with return code 1): cat /config/.storage/core.device_registry | grep -A “Silicon Labs” | grep -A “ZST10-700” | grep “sw_version”
The sensor code is this:
- platform: command_line
name: Z-Wave USB Firmware
command: 'cat /config/.storage/core.device_registry | grep -A "Silicon Labs" | grep -A "ZST10-700" | grep "sw_version"'
scan_interval: 3600
value_template: '{{ value.split("\"")[3] }}'
Also tried with
value_template: "{{ value }}"
This is the file data I am trying to pick the data from:
“manufacturer”: “Silicon Labs”,
“model”: “ZST10-700”,
“name_by_user”: null,
“name”: “700 Series-based Controller”,
“sw_version”: “7.17.2”,
“via_device_id”: null
Any ideas what’s wrong?
UPDATE: Issue raised