Hello and thank you for sharing your custom card. Iām new to all this of the home assistant and home automation. I would like to know how did you get the following:
1. is this the plug I'm using to power the washing machine? I have a sonoff s31 switch will this work?
2. this one I don't know where to get it from.
3. this one is the sensor template to calculate the time.
Am I correct on number 1 and 3? Thank you for your time and help.
If youāre in storage mode, it means youāre using the UI to edit lovelace, which means the resources needs to go into the resources section, not the configuration.yaml. I assume you donāt have a ui-lovelave.yaml file that you add the yaml to for your lovelace then, correct?
Hacs should add the resource when you installed the custom card, but if it didnāt you can add it yourself. Is hacs asking to restart or anything? Typically youāll need to restart HA after installing a custom card. Iād recommend trying the following:
Make sure there is a folder and a .js file in that folder in the config/www/community/ for button card. If its not setup like that, hacs didnāt install it properly.
Make sure there is a resource added for this under configuration - lovelace - resources. If itās not there then lovelace wonāt be able to find/use it.
Remove the resources yaml code from your configuration.yaml and your lovelace dashboardās yaml code. If you are in storage mode (modifying lovelave via the UI and raw editor) you donāt need to add it to either location.
Resart HA to get everything to reload/refresh.
Open your dashboard, click the three vertical dots in the top right menu and reload the resources.
I think you havenāt added the language file EN.yaml (if you are using english). You should have EN.yaml inside the same folder as button_card_templates.yaml
The card is made for the Samsung washer. Therefore there might be some sensors that you will not be able to reproduce when using this card with a power plug.
This is the sensor to determine whether the washer is on or off.
The washer integration provides a job_state sensor. This sensor lets HA know what the washer is doing. E.g.: weighing, washing, spinning, drying. You will not have this sensor when using the power plug.
The washer also provides a sensor for when the washer thinks he will be done. You can create your own sensor here based on the start time of your washer and the average runtime or something.
It seems your problem happens because of custom_card_schumijo_flower. You can try and delete the folder and see if it helps. It seems the language files in this custom card overrides the default language file (minimalist-templates/EN.yaml)
Iāve been tinkering a bit with the ācustom_card_tpx01_aircondition_with_buttonsā.
I have a sensor set up that tells me which mode itās in. High, normal or away. Itās called sensor.vtr_status
I wanted to output this sensor to the label on the card. I tried this:
need to say that this theme looks damn awesome for phones. just found it and setting it up right now.
got a problem tho: what is the best button to use for scenes? so just a simple button that i press to call the scene.
also, is it possible to set up a button so it only uses half the screen? for example i use the person-button that uses the full width of my screen, but iĀ“d like to have it smaller (like having a second invisible button-card next to it)
Very nice @tombo12354 ! Added it right away to my setup
Made a slight change tho, my alarm is set to give me about 30 seconds to leave the house when the alarm is enabled. Therefore the state will be āarmingā for about 30 seconds. In your template, this gives me a āunknownā state for that amount of time.
So I added the arming state, changed the armed to armed_home and added the armed_away state.
For anyone that is interested, here is the template code.
chips_alarm:
template:
- chips
- chips_icon_label
label: |
[[[
var alarm_label = 'unknown';
if (entity.state == 'armed_home'){
var alarm_label = 'Armed Home';
} else if(entity.state == 'disarmed'){
var alarm_label = 'Disarmed';
} else if (entity.state == 'arming'){
var alarm_label = 'Arming'
} else if (entity.state == 'armed_away'){
var alarm_label = 'Armed Away'
}
return alarm_label;
]]]
icon: |
[[[
var alarm_icon = 'mdi:shield-outline';
if (entity.state == 'armed_home'){
var alarm_icon = 'mdi:shield-home';
} else if(entity.state == 'disarmed'){
var alarm_icon = 'mdi:shield';
} else if (entity.state == 'arming'){
var alarm_icon = 'mdi:shield-sync'
} else if (entity.state == 'armed_away'){
var alarm_icon = 'mdi:shield-key'
}
return alarm_icon;
]]]
styles:
icon:
- color: |
[[[
var alarm_color = 'yellow';
if (entity.state == 'armed_home'){
var alarm_color = 'orange';
} else if(entity.state == 'disarmed'){
var alarm_color = 'green';
} else if(entity.state == 'armed_away'){
var alarm_color = 'red';
}
return alarm_color;
]]]
Of course thatās possible. Take a look at the native grid card from home assistant. If you want 50%, you will need 2 columns but thats pretty obvious
Any of the cards in this template can do this, but itās maybe best to use the most simple one: generic card. Then you can add a tap_action to get the desired result:
- type: 'custom:button-card'
template: card_generic
entity: scene.your_scene # <- replace this
name: "Some text you want to display"
label: "Bottom text you want to display"
tap_action:
action: call-service
service: scene.turn_on
service_data:
entity_id: scene.your_scene # <- replace this
Whats going on with the thermostat custom card? Itās not working for me and if i check the config it have a light.qubino inside? Can anyone explain why itās not working and why itās in French.