tcarlsen / lovelace-light-with-profiles Goto Github PK
View Code? Open in Web Editor NEWTurn on lights based on light_profiles.csv
License: MIT License
Turn on lights based on light_profiles.csv
License: MIT License
This might be a dumb question but I can't find the light_profiles.csv file in my home assistant installation.
I'm running home-assistant-core inside docker and looking in the mounted folders I can't find the file anywhere.
Do I have to create it first?
It would be great to have the ability to override names of entities just like the entities card that ships with HA.
- entity: light.spisestuen
name: 'My light'
profiles:
- name: bright
icon: 'mdi:brightness-5'
- name: dimmed
icon: 'mdi:brightness-4'
- name: nightlight
icon: 'mdi:brightness-3'
In the standard HA light controls when you click the name of an entity, it'll show the brightness and color pallet. It would be helpful to port the same functionality into this implementation so that a user does not require both
I've noticed that the toggles stopped working after I updated to 0.100.3. The fix is to replace <paper-toggle-button> with <ha-switch>.
I have a light group that consists of 2 table lamps and am using the standard buttons in an entity card. The buttons work to change the light levels, however the background never changes to show the state. I have verified that the buttons work as expected for the individual lamp entities so I am not sure why the group does not work.
Here is my group in groups.yaml:
family_room_lamps:
entities:
- light.left_family_room_lamp
- light.right_family_room_lamp
And here is the configuration in the entities card:
- customSetpoints: true
entity: group.family_room_lamps
hiBrightness: 254
icon: 'mdi:lamp'
lowBrightness: 50
medBrightness: 120
name: Table Lamps
secondary_info: last-changed
type: 'custom:light-brightness-preset-row'
- customSetpoints: true
entity: light.family_room_fan
hiBrightness: 254
lowBrightness: 64
medBrightness: 128
name: Family Room Fan
type: 'custom:light-brightness-preset-row'
- entity: remote.familyroom
title: Family Room
- entity: light.left_family_room_lamp
type: 'custom:light-brightness-preset-row'
- entity: light.right_family_room_lamp
type: 'custom:light-brightness-preset-row'
type: entities
here is a screen shot of the individual lamps in high and the group shows off:
I followed all your installation docs, put the light_profiles.csv inside the /config folder, added the entry light_profiles inside the ui.lovelace.yaml with the same values of light_profiles.csv, added the card inside ui.lovelace.yaml. but this is what i get:
I am able to turn on and off the lights, but clicking over a profile it do not nothing. Nothing change...
For more informations my light_profile.csv is:
bright,0.5119,0.4147,254
dimmed,0.5119,0.4147,77
nightlight,0.363,0.3686,1
And this is what i added into ui.lovelace.yaml:
light_profiles:
bright: '0.5119,0.4147,254'
dimmed: '0.5119,0.4147,77'
nightlight: '0.363,0.3686,1'
My card is:
- title: Profili Luci
path: profili
icon: mdi:lightbulb
cards:
- type: custom:light-with-profiles
title: Profili Luci
debug: true
entities:
- entity: light.yeelight_1
profiles:
- name: bright
icon: 'mdi:brightness-5'
- name: dimmed
icon: 'mdi:brightness-4'
- name: nightlight
icon: 'mdi:brightness-3'
- entity: light.yeelight_2
profiles:
- name: bright
icon: 'mdi:brightness-5'
- name: dimmed
icon: 'mdi:brightness-4'
- name: nightlight
icon: 'mdi:brightness-3'
- entity: light.yeelight_5
profiles:
- name: bright
icon: 'mdi:brightness-5'
- name: dimmed
icon: 'mdi:brightness-4'
- name: nightlight
icon: 'mdi:brightness-3'
- entity: light.yeelight_9
profiles:
- name: bright
icon: 'mdi:brightness-5'
- name: dimmed
icon: 'mdi:brightness-4'
- name: nightlight
icon: 'mdi:brightness-3'
I am running HASSOS 0.116.4 inside a RPi4
Hi!
I have some KNX lights that wont work if I also send in XY color.
looks like they only work when I use entity and brightness. is it possible to have this as an option? only brightness.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.