diff --git a/lovelace/coffee_card.yaml b/lovelace/coffee_card.yaml new file mode 100644 index 0000000..96095d1 --- /dev/null +++ b/lovelace/coffee_card.yaml @@ -0,0 +1,19 @@ +type: entities +entities: + - type: custom:hui-picture-entity-card + entity: switch.kaffebryggare + image: !file /local/images/moccamaster.jpg + show_state: false + show_name: false + tap_action: { action: toggle } + - type: custom:fold-entity-row + head: + entity: switch.kaffebryggare + icon: mdi:coffee + items: + - input_boolean.cfe_on + - type: custom:time-input-row + entity: input_datetime.cfe_on + - type: section + - input_boolean.cfe_off + - input_number.cfe_off diff --git a/lovelace/main.yaml b/lovelace/main.yaml index a10df8c..bab429e 100644 --- a/lovelace/main.yaml +++ b/lovelace/main.yaml @@ -1,4 +1,11 @@ title: Åvägen +resources: + - url: !file /local/lovelace-card-tools/card-tools.js + type: js + - url: !file /local/lovelace-fold-entity-row/fold-entity-row.js + type: js + - url: !file /local/lovelace-time-input-row/time-input-row.js + type: js views: - title: Hemma2 cards: @@ -9,3 +16,4 @@ views: action: call-service service: shell_command.lovelace_gen - !include floorplan.yaml + - !include coffee_card.yaml