slofii
(Michael)
December 7, 2021, 10:19am
2135
My Popup Card for the camera looks like this:
action: fire-dom-event
browser_mod:
command: popup
title: Kamera
style:
hui-grid-card:
$hui-entities-card$: |
#states {
padding-bottom: 0 !important;
}
$hui-history-graph-card$ : |
.content {
padding: 1.8em 2em 1.8em 2em !important;
}
$hui-glance-card$ : |
.entities.no-header {
padding-top: 0 !important;
}
$: |
button-card {
justify-self: center;
margin: 0.8em 0 2.5em 0;
width: 100%;
}
#root {
grid-gap: 0 !important;
}
hui-map-card {
height: 99.5% !important;
}
card:
type: grid
columns: 1
square: false
cards:
- type: picture-entity
entity: camera.blink_miccam1
show_name: false
show_state: false
- type: entities
show_header_toggle: false
entities:
- entity: script.camera_stream
name: Kamera auslösen
icon: mdi:cast
Did this help?
slofii
(Michael)
December 7, 2021, 10:26am
2136
I cant change the color of my lights anymore. Have anybody an idea why?
imne
(Imne)
December 8, 2021, 12:12am
2137
can you please share your yaml for this ui
maverik80
(Maverik80)
December 8, 2021, 3:13am
2138
thank you very much, it was a beginner mistake
chezpaul2
(Paul B.)
December 8, 2021, 5:44am
2139
Hey @Mattias_Persson ,
I’ve tried to update my person automation as you did in your last update.
But you have only 2 people in your house. I have four. Did I do this right here?
- id: '8423590985012'
alias: Person Home
initial_state: true
trigger:
- platform: state
entity_id:
- person.paul
- person.nathalie
- person.juliette
- person.julien
from:
- home
- away
to:
- home
- away
action:
- choose:
- conditions: >
{{ trigger.entity_id == 'person.paul' }}
sequence:
- service: mqtt.publish
data:
topic: homeassistant/persistence/paul
payload_template: >
{{ now() }}
retain: true
- service: mqtt.publish
data:
topic: homeassistant/persistence/juliette
payload_template: >
{{ now() }}
retain: true
- service: mqtt.publish
data:
topic: homeassistant/persistence/julien
payload_template: >
{{ now() }}
retain: true
default:
- service: mqtt.publish
data:
topic: homeassistant/persistence/nathalie
payload_template: >
{{ now() }}
retain: true
I don’t understand the default:
thing going on.
The way I did it, I don’t have the time in the button anymore. I did change everything else accordingly.
Thanks
odiv
(Duta Ovidiu)
December 8, 2021, 5:02pm
2141
Hello @Se7enair ! How did you manage to add cameras on your setup?
soylant
(Birger Jensen)
December 8, 2021, 7:20pm
2142
Hi
I am trying to make a sensor for my udm_unifios I have the sensor template in place also changed the secret file to match my UDM and testet that the user and password I am using is working, but still I am not able to get the sensor working keep saying unknown, did you do anything on UDM to make this work??
antyamok
(antyamok)
December 8, 2021, 8:24pm
2143
@Mattias_Persson
Hello,
I’m looking to get a count of open doors like what was done for the lights in the Sidebar.
How can I do it?
I’ve added “append” so you can add your door list there
{%- set media_players = [
states.media_player.sony_bravia_tv
] %}
{%- set lights_on = lights | selectattr('state','eq','on') | list %}
{%- set lights_name = lights | selectattr('state','eq','on') | map(attribute='name') | join(', ') %}
{%- set switches_on = switches | selectattr('state','eq','on') | list %}
{%- set media_players_playing = media_players | selectattr('state','eq','playing') | list %}
{%- set append = switches_on + media_players_playing %}
{%- set switches_name = append | map(attribute='name') | join(', ') %}
{%- if (lights_on | length == 0) and (switches_on | length > 0) -%}
{{ switches_name | regex_replace(',([^,]*)$',' och\\1') }} är på
{%- elif (lights_on | length == 1) and (switches_on | length == 1) -%}
{{ lights_name }} och {{switches_name }} är på
{%- elif (lights_on | length == 1) and (switches_on | length > 1) -%}
{{ lights_name }}, {{ switches_name | regex_replace(',([^,]*)$',' och\\1') }} är på
Nope, try curl command in terminal first and make note of any errors
@Vsider
I spent the weekend scratching my head over this. I didn’t want any scripts with dependencies or cli utilities, I just wanted to access the damn api
I came up with this (cookie in variable )
data='{"username":"user","password":"pass"}'; ip='https://192.168.1.1:443'; c=$(curl -H 'Content-Type: application/json' -d $data -ksc - $ip/api/auth/login -o /dev/null); echo "${c}" | curl -ksb - $ip/proxy/network/api/s/default/stat/device/
BUT because of the limitations of Command line Sensor , …
No, away
is wrong and you need trigger.entity_id
for each person
https://www.home-assistant.io/docs/scripts/#choose-a-group-of-actions
It just means “else” and it’s optional
1 Like
Are you going to share your secrets.yaml? It’s done manually
type: picture-entity
is its own card and is not a valid for type: entities
. You can however use the “internal” name type: custom:hui-picture-entity-card
[source ] (or hui-element )
I’d skip entities
altogether and if you need other cards group them in a vertical-stack
chezpaul2
(Paul B.)
December 8, 2021, 11:00pm
2150
Mattias_Persson:
No, away
is wrong
I did change all instances of your “not_home” to “away” so it should work, right?
chezpaul2
(Paul B.)
December 8, 2021, 11:04pm
2152
You have trigger identity for 2 people. I just made it 4. Does that not work?
That part is correct but the action you’ve posted is “if person.paul changes state update timestamp of paul, juliette and julien”
1 Like
moritzlang
(Moritz)
December 9, 2021, 12:00am
2154
I saw that some guys here were using the thermostat-popup-card by DBuit.
There are some issues with it and because the repo is not well maintained I added two pull request to the original repository.
Additionally I adjusted some styles. If you want your thermostat popup to look like the screenshot below, feel free to use the URL of my fork when installing via HACS:
https://github.com/moritzlang/thermostat-popup-card
5 Likes