Hi ALl,
Is there a way to combine all customize stuff into 1 file for each device:
milight.yaml, all customize things here for milight related entities
zware.yaml all customize things here for zwave related entities
That mean binary_sensors, sensors, group, light, etc… in 1 file for each device.
Now I have for every device_class a file. binary_sensor.yaml, light.yaml, input_selector.yaml etc
THats not easy to use when you need change something for a light, search in all yaml files that linked with a light…
This is what I want as example:
milight.yaml
###########################################################################################
#
# BINARY_SENSOR
#
###########################################################################################
binary_sensor.milight_hub:
templates:
icon: if (state === 'on') return 'mdi:server-network'; return 'mdi:server-network-off';
icon_color: if (state === 'on') return 'rgba(251, 214, 67,1)'; return 'rgba(71,116,157,1)';
###########################################################################################
#
# GROUP
#
###########################################################################################
group.lights_group_all:
friendly_name: "Group All Lights Group 0"
templates:
icon: mdi:group
icon_color: if (state === 'on') return 'rgba(251,214,67,1)'; return 'rgba(71,116,157,1)';
###########################################################################################
#
# SYSTEM INFO
#
###########################################################################################
sensor.milight_firmware:
friendly_name: "Firmware"
sensor.milight_dropped_packets:
friendly_name: "Dropped Packets"
###########################################################################################
#
# LIGHT
#
###########################################################################################
light.hallway:
friendly_name: "Hallway"
homebridge_name: "Hallway"
icon: mdi:ceiling-light
light.balcony:
friendly_name: "Balcony"
homebridge_name: "Balcony"
icon: mdi:ceiling-light