Black Friday = Pricewatch Bekijk onze selectie van de beste Black Friday-deals en voorkom een miskoop.

Wekker Radio in Home Assistant

Pagina: 1
Acties:

Vraag


  • aaronwestenberg
  • Registratie: Juni 2017
  • Laatst online: 10-05-2022
Hallo,

Ik heb de overstap gemaakt van Homey naar HA. nu loop ik vast bij het maken van een wekker waarbij ik zelf een tijd kan instellen en de dagen kan aanvinken wanneer de wekker af moet gaan. heeft 1 van jullie een voorbeeld hoe ik dit het beste kan aanpakken?

Alvast bedankt :)

gr. Aaron

Beste antwoord (via aaronwestenberg op 04-05-2022 22:25)


  • paskaal
  • Registratie: Juli 2010
  • Laatst online: 05-11 09:32
Ik heb zelf deze oplossing in mijn HA:
Afbeeldingslocatie: https://tweakers.net/i/YjZ7l1jM2VsnLrNs0JjWs0J4rHg=/x800/filters:strip_exif()/f/image/cbV4iksXDVBzP8YVV4Tk4Rzo.png?f=fotoalbum_large

Daarvoor heb ik via de UI de volgende helpers (Configuration > Automations & Scenes > Helpers) aangemaakt:
Afbeeldingslocatie: https://tweakers.net/i/AEiLarKiCko9qh7mtmxHlmq0Gb8=/800x/filters:strip_exif()/f/image/hGawkoYcprDqBWtF58TBidIG.png?f=fotoalbum_large

Waarbij de input_datetime.wekker als type 'Time' heeft.

Vervolgens een automation gemaakt die mijn "Zet de radio aan" automation triggert (ook via de UI gedaan, maar hier is de YML output van de configuratie):
YAML:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
alias: Wekker
description: ''
trigger:
  - platform: time
    at: input_datetime.wekker
    id: wekker_time
condition:
  - condition: and
    conditions:
      - condition: state
        entity_id: input_boolean.wekker
        state: 'on'
      - condition: or
        conditions:
          - condition: and
            conditions:
              - condition: state
                entity_id: input_boolean.wekker_maandag
                state: 'on'
              - condition: template
                value_template: '{{ now().isoweekday() == 1 }}'
          - condition: and
            conditions:
              - condition: state
                entity_id: input_boolean.wekker_dinsdag
                state: 'on'
              - condition: template
                value_template: '{{ now().isoweekday() == 2 }}'
          - condition: and
            conditions:
              - condition: state
                entity_id: input_boolean.wekker_woensdag
                state: 'on'
              - condition: template
                value_template: '{{ now().isoweekday() == 3 }}'
          - condition: and
            conditions:
              - condition: state
                entity_id: input_boolean.wekker_donderdag
                state: 'on'
              - condition: template
                value_template: '{{ now().isoweekday() == 4 }}'
          - condition: and
            conditions:
              - condition: state
                entity_id: input_boolean.wekker_vrijdag
                state: 'on'
              - condition: template
                value_template: '{{ now().isoweekday() == 5 }}'
          - condition: and
            conditions:
              - condition: state
                entity_id: input_boolean.wekker_zaterdag
                state: 'on'
              - condition: template
                value_template: '{{ now().isoweekday() == 6 }}'
          - condition: and
            conditions:
              - condition: state
                entity_id: input_boolean.wekker_zondag
                state: 'on'
              - condition: template
                value_template: '{{ now().isoweekday() == 7 }}'
action:
  - service: automation.trigger
    target:
      entity_id: automation.zet_de_radio_aan
    data:
      skip_condition: false
mode: single


Hopelijk heb je er wat aan :)

[ Voor 0% gewijzigd door Septillion op 03-05-2022 23:02 . Reden: yaml code tags ]

Alle reacties


  • Wylana
  • Registratie: April 2009
  • Laatst online: 17:19
Misschien via de Google Home Timers?

https://home-assistant-gu...alarms-in-home-assistant/

Ik ben steenrijk....ik heb een grindpad!


  • aaronwestenberg
  • Registratie: Juni 2017
  • Laatst online: 10-05-2022
nog niet helemaal wat ik zocht. ben meer opzoek naar onderstaande afbeelding
Afbeeldingslocatie: https://tweakers.net/i/XuB1UK2rbay6LgxMZQqRRk_KAGc=/full-fit-in/4000x4000/filters:no_upscale():fill(white):strip_exif()/f/image/gfJX5RzSVR08dChr6iUxwoJg.png?f=user_large

  • rkrythe
  • Registratie: Oktober 2000
  • Laatst online: 19-06 08:58
Wat je ook kunt doen is de next alarm sensor in de HA app op je telefoon gebruiken.

Flickr


  • Septillion
  • Registratie: Januari 2009
  • Laatst online: 21:43

Septillion

Moderator Wonen & Mobiliteit
Heb je dat zelf gemaakt of ergens als plaatje gevonden? Zoiets moet niet heel lastig te maken te zijn.

Acties:
  • Beste antwoord

  • paskaal
  • Registratie: Juli 2010
  • Laatst online: 05-11 09:32
Ik heb zelf deze oplossing in mijn HA:
Afbeeldingslocatie: https://tweakers.net/i/YjZ7l1jM2VsnLrNs0JjWs0J4rHg=/x800/filters:strip_exif()/f/image/cbV4iksXDVBzP8YVV4Tk4Rzo.png?f=fotoalbum_large

Daarvoor heb ik via de UI de volgende helpers (Configuration > Automations & Scenes > Helpers) aangemaakt:
Afbeeldingslocatie: https://tweakers.net/i/AEiLarKiCko9qh7mtmxHlmq0Gb8=/800x/filters:strip_exif()/f/image/hGawkoYcprDqBWtF58TBidIG.png?f=fotoalbum_large

Waarbij de input_datetime.wekker als type 'Time' heeft.

Vervolgens een automation gemaakt die mijn "Zet de radio aan" automation triggert (ook via de UI gedaan, maar hier is de YML output van de configuratie):
YAML:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
alias: Wekker
description: ''
trigger:
  - platform: time
    at: input_datetime.wekker
    id: wekker_time
condition:
  - condition: and
    conditions:
      - condition: state
        entity_id: input_boolean.wekker
        state: 'on'
      - condition: or
        conditions:
          - condition: and
            conditions:
              - condition: state
                entity_id: input_boolean.wekker_maandag
                state: 'on'
              - condition: template
                value_template: '{{ now().isoweekday() == 1 }}'
          - condition: and
            conditions:
              - condition: state
                entity_id: input_boolean.wekker_dinsdag
                state: 'on'
              - condition: template
                value_template: '{{ now().isoweekday() == 2 }}'
          - condition: and
            conditions:
              - condition: state
                entity_id: input_boolean.wekker_woensdag
                state: 'on'
              - condition: template
                value_template: '{{ now().isoweekday() == 3 }}'
          - condition: and
            conditions:
              - condition: state
                entity_id: input_boolean.wekker_donderdag
                state: 'on'
              - condition: template
                value_template: '{{ now().isoweekday() == 4 }}'
          - condition: and
            conditions:
              - condition: state
                entity_id: input_boolean.wekker_vrijdag
                state: 'on'
              - condition: template
                value_template: '{{ now().isoweekday() == 5 }}'
          - condition: and
            conditions:
              - condition: state
                entity_id: input_boolean.wekker_zaterdag
                state: 'on'
              - condition: template
                value_template: '{{ now().isoweekday() == 6 }}'
          - condition: and
            conditions:
              - condition: state
                entity_id: input_boolean.wekker_zondag
                state: 'on'
              - condition: template
                value_template: '{{ now().isoweekday() == 7 }}'
action:
  - service: automation.trigger
    target:
      entity_id: automation.zet_de_radio_aan
    data:
      skip_condition: false
mode: single


Hopelijk heb je er wat aan :)

[ Voor 0% gewijzigd door Septillion op 03-05-2022 23:02 . Reden: yaml code tags ]


  • aaronwestenberg
  • Registratie: Juni 2017
  • Laatst online: 10-05-2022
@paskaal Nice!! Dit is inderdaad wat ik zoek. Je geeft aan dat je de automation hebt gemaakt in de UI heb je hier misschien ook een screenshot van?

Dankjewel voor de moeite :)

  • Septillion
  • Registratie: Januari 2009
  • Laatst online: 21:43

Septillion

Moderator Wonen & Mobiliteit
@aaronwestenberg Nog beter, start zelf nieuwe automation, switch naar yaml, plak zijn code en switch terug naar UI mode. En tada, je kan het zien en zelfs aanpassen :D

  • MarcelD
  • Registratie: Januari 2022
  • Laatst online: 05-11 09:12
Reactie op een oude post, maar ik hoop dat iemand nog meeleest O-) .

Automation heb ik nu, maar waar/hoe presenteer ik het nu? Hoe kan ik het gebruiken?

  • Gizz
  • Registratie: Maart 2001
  • Nu online

Gizz

Dunder-Mifflin, Inc.

@MarcelD Gewoon de helpers ergens op je dashboard zetten? :)

[ Voor 9% gewijzigd door Gizz op 12-10-2023 12:33 ]

Canon EOS 5Dm3 + 5D + 7D + 300D + 1000FN + EF 17-40 4L + EF 35 1.4L + EF 50 1.8 + EF 80-200 2.8L + 550EX


  • MarcelD
  • Registratie: Januari 2022
  • Laatst online: 05-11 09:12
Thanks, wat voor card is daar handig voor?

Zeker die icons die veranderen bij activeren zijn wel fraai

[ Voor 42% gewijzigd door MarcelD op 12-10-2023 14:01 ]


  • tobiasvs
  • Registratie: Februari 2010
  • Niet online

tobiasvs

Tobias

Huidige voorbeeld is een "entities" card. Jouw eigen voorbeeld was een "vertical stack"-kaart, waarin 1 kaart "entities" en 1 kaart "horizontal stack" met daarin weer 7 "button"-kaarten, voor elke weekdag 1.

Knoppen die veranderen bij statuswijziging (aan = geel) is gewoon een standaardoptie bij HA ("pictogrammen kleuren op basis van status").

Bovenstaand is dus gewoon met de standaard HA-kaarten te maken.

[ Voor 10% gewijzigd door tobiasvs op 12-10-2023 19:08 ]

Canon | Fujifilm | www.tobiasvanstijn.nl

Pagina: 1