Dzięki wielkie, wszystko działa
Jeszcze mam pytanie:
chciałbym ułożyć te karty w pionie:
ale jak dodam po
title: Home
**type: vertical-stack**
cards:
to wyskakuje błąd: unknown type encountered vertical-stack
Dzięki wielkie, wszystko działa
Jeszcze mam pytanie:
chciałbym ułożyć te karty w pionie:
ale jak dodam po
title: Home
**type: vertical-stack**
cards:
to wyskakuje błąd: unknown type encountered vertical-stack
title: Home
cards:
- type: vertical-stack
cards:
[…]
Wtedy zmienia tak:
Natomiast nie mogę dodać kolejnego
title: Home
cards:
- type:verical-stack
cards:
- type: horizontal-stack
cards:
bo sam mi usuwa tą linijkę
Wcięcia stosuj, i to MUSZĄ być spacje, a nie tabulatory.
(u Ciebie nie ma żadnych, a bez wcięć struktura YAMLa nie istnieje)
I wrzuć cały kod swojej karty, a nie urywki, ten nieudany też.
title: Home
cards:
- type:verical-stack
cards:
- type: horizontal-stack
cards:
Dodanie spacji niestety nic nie dało, kod kardy zamieściłem powyżej.
Ogólnie kod brałem z tego linku: Karta UI - rekuperator - Pastebin.com
Ale wywali mi błąd ze względu na ten pierwszy wiersz
type: horizontal-stack
cards:
- type: button
tap_action:
action: toggle
entity: switch.rekuperator_on_off
name: Praca
show_state: true
icon: mdi:air-filter
show_name: true
show_icon: true
- type: button
tap_action: null
action: more-info
entity: binary_sensor.rekuperator_silownik_bypassu
name: Bypass
show_state: true
icon: mdi:arrow-decision
- type: conditional
conditions:
- entity: switch.rekuperator_zima
state: 'on'
card:
type: button
tap_action:
action: toggle
entity: switch.rekuperator_zima
name: Zima
icon: mdi:snowflake
- type: conditional
conditions:
- entity: switch.rekuperator_zima
state: 'off'
card:
type: button
tap_action:
action: toggle
entity: switch.rekuperator_zima
name: Lato
icon: mdi:sun-snowflake
- type: button
tap_action: null
action: toggle
entity: switch.rekuperator_mode
name: Auto
show_state: true
icon: mdi:home-floor-a
- type: horizontal-stack
cards:
- type: button
tap_action:
action: call-service
service: modbus.write_register
service_data:
address: 4210
unit: 10
value: 10
hub: reku
target: {}
entity: input_boolean.test
show_icon: false
name: 10%
- type: button
tap_action:
action: call-service
service: modbus.write_register
service_data:
address: 4210
unit: 10
value: 20
hub: reku
target: {}
entity: input_boolean.test
show_icon: false
name: 20%
- type: button
tap_action:
action: call-service
service: modbus.write_register
service_data:
address: 4210
unit: 10
value: 30
hub: reku
target: {}
entity: input_boolean.test
show_icon: false
name: 30%
- type: button
tap_action:
action: call-service
service: modbus.write_register
service_data:
address: 4210
unit: 10
value: 40
hub: reku
target: {}
entity: input_boolean.test
show_icon: false
name: 40%
- type: button
tap_action:
action: call-service
service: modbus.write_register
service_data:
address: 4210
unit: 10
value: 50
hub: reku
target: {}
entity: input_boolean.test
show_icon: false
name: 50%
- type: picture-elements
elements:
- type: state-label
entity: sensor.rekuperator_temperatura_czerpnia
style:
top: 27%
left: 7%
color: black
- type: state-label
entity: sensor.rekuperator_temperatura_za_fpx
style:
top: 14%
left: 19%
- type: state-label
entity: sensor.rekuperator_temperatura_nawiew
style:
top: 54%
left: 94%
color: black
- type: state-label
entity: sensor.rekuperator_strumien_nawiew
style:
top: 72%
left: 93%
- type: state-label
entity: sensor.rekuperator_wysterowanie_nawiew
style:
top: 65%
left: 94%
- type: state-label
entity: sensor.rekuperator_temperatura_wywiew
style:
top: 27%
left: 94%
color: black
- type: state-label
entity: sensor.rekuperator_strumien_wywiew
style:
top: 10%
left: 92%
- type: state-label
entity: sensor.rekuperator_wysterowanie_wywiew
style:
top: 18%
left: 94%
- type: state-label
entity: sensor.rekuperator_sprawnosc
style:
top: 80%
left: 50%
- type: state-label
entity: sensor.rekuperator_temperatura_pcb
style:
top: 72%
left: 35%
- type: state-label
entity: sensor.rekuperator_odzyskana_moc
style:
top: 90%
left: 50%
- type: state-label
entity: sensor.rekuperator_speedmanual
style:
top: 85%
left: 12%
border: 1px solid white
border-radius: 5%
- type: image
entity: binary_sensor.rekuperator_silownik_bypassu
state_image:
'on': /local/reku_bypass3.png
'off': /local/reku_empty.png
style:
top: 41%
left: 51%
width: 25%
- type: image
entity: sensor.rekuperator_fpx_flaga
state_image:
'0': /local/reku_empty.png
'1': /local/reku_fpx.png
style:
top: 8%
left: 52.5%
width: 10%
- type: image
entity: sensor.rekuperator_fpx_tryb
state_image:
'0': /local/reku_empty.png
'1': /local/reku_1.png
'2': /local/reku_2.png
style:
top: 8%
left: 60%
width: 3.5%
- type: image
entity: sensor.rekuperator_alarm
state_image:
'0': /local/reku_empty.png
'1': /local/reku_alarm.png
style:
top: 8%
left: 20%
width: 15%
- type: image
entity: sensor.rekuperator_error
state_image:
'0': /local/reku_empty.png
'1': /local/reku_alarm.png
style:
top: 8%
left: 20%
width: 15%
- type: image
entity: sensor.rekuperator_awaria_cf_nawiewu
state_image:
'0': /local/reku_empty.png
'1': /local/reku_alarm.png
style:
top: 8%
left: 20%
width: 15%
- type: image
entity: sensor.rekuperator_awaria_cf_wywiewu
state_image:
'0': /local/reku_empty.png
'1': /local/reku_alarm.png
style:
top: 8%
left: 20%
width: 15%
- type: image
entity: sensor.rekuperator_awaria_wentylatora_nawiewu
state_image:
'0': /local/reku_empty.png
'1': /local/reku_alarm.png
style:
top: 8%
left: 20%
width: 15%
- type: image
entity: sensor.rekuperator_awaria_wentylatora_wywiewu
state_image:
'0': /local/reku_empty.png
'1': /local/reku_alarm.png
style:
top: 8%
left: 20%
width: 15%
- type: image
entity: sensor.rekuperator_fpx_zabezpieczenie_termiczne
state_image:
'0': /local/reku_empty.png
'1': /local/reku_alarm.png
style:
top: 8%
left: 20%
width: 15%
- type: image
entity: sensor.rekuperator_wymiana_filtrow
state_image:
'0': /local/reku_empty.png
'1': /local/reku_alarm.png
style:
top: 8%
left: 20%
width: 15%
image: /local/reku_nobypass3.png
- type: horizontal-stack
cards:
- type: button
tap_action:
action: call-service
service: modbus.write_register
service_data:
address: 4210
unit: 10
value: 60
hub: reku
target: {}
entity: input_boolean.test
show_icon: false
name: 60%
- type: button
tap_action:
action: call-service
service: modbus.write_register
service_data:
address: 4210
unit: 10
value: 70
hub: reku
target: {}
entity: input_boolean.test
show_icon: false
name: 70%
- type: button
tap_action:
action: call-service
service: modbus.write_register
service_data:
address: 4210
unit: 10
value: 80
hub: reku
target: {}
entity: input_boolean.test
show_icon: false
name: 80%
- type: button
tap_action:
action: call-service
service: modbus.write_register
service_data:
address: 4210
unit: 10
value: 90
hub: reku
target: {}
entity: input_boolean.test
show_icon: false
name: 90%
- type: button
tap_action:
action: call-service
service: modbus.write_register
service_data:
address: 4210
unit: 10
value: 100
hub: reku
target: {}
entity: input_boolean.test
show_icon: false
name: 100%
- type: horizontal-stack
cards:
- type: button
tap_action:
action: toggle
entity: switch.rekuperator_pusty_dom
name: Pusty dom
icon: mdi:home-account
show_state: true
- type: button
tap_action:
action: toggle
entity: switch.rekuperator_wietrzenie
name: Wietrzenie
show_state: true
icon: mdi:fan
- type: button
tap_action:
action: toggle
entity: switch.rekuperator_okna
name: Otwarte okna
show_state: true
icon: mdi:window-open-variant
- type: button
tap_action:
action: toggle
entity: switch.rekuperator_kominek
name: Kominek
show_state: true
icon: mdi:fireplace
Kod z Pastebin
jest jak najbardziej poprawny.
Kliknij w:
Kliknij Nowa karta w HA
I wklej kod.
Dzięki, wszystko działa teraz. Próbowałem to wklejać w edytorze widoku zamiast karty