I made a custom component to parse the json output of a CLI command.
I have it configures like so:
homeassistant:
customize:
sensor.midniteclassic_classic:
friendly_name: "Cool name"
sensor.yr_symbol:
friendly_name: "test"
sensor:
- platform: command_line_json
prefix: MidniteClassic
command: [my CLI command]
scan_interval: 1
resources:
- timestamp
- classic
group:
midnite_infos:
name: "Midnite Classic"
view: no
entities:
- sensor.midniteclassic_classic
- sensor.midniteclassic_timestamp
I can see mys sensors, and the group. But when it comes to customizing sensor.midniteclassic_classic
, nothing works (friendly_name, icon etc.). But it works for sensor.yr_symbol
as per the yaml above.
What am I doing wrong with the custom component ?