Il semble manquait la configuration.
Elle a bien était chargée à un moment d’où la trace des entités mais elles ne sont plus chargées apparemment.
Il semble manquait la configuration.
Elle a bien était chargée à un moment d’où la trace des entités mais elles ne sont plus chargées apparemment.
Merci. Je ne parviens pas à trouver, pourquoi ?
Comment puis-je corriger cela, à ton avis ?
#Par rapport au post 1 de @cob94440
# sensor.wake_time_1 est remplacé par input_datetime.wake_time_1 pour la définition de l'heure du réveil
# input_number.wakehour_1 est remplacé par input_select.wakehour_1 pour la définition de l'heure
# input_number.wakeminutes_1 est remplacé par input_select.wakeminutes_1 pour la définition des minutes
#Input_booleans (inchangés par rapport au post 1)
input_boolean:
wakeactivated_1:
name: Alarm 1 Activated
icon: mdi:alarm
wakestatus_1:
name: Alarm 1
icon: mdi:alarm
wakeweekday_sun_1:
name: Sunday
icon: mdi:calendar
wakeweekday_mon_1:
name: Monday
icon: mdi:calendar
wakeweekday_tue_1:
name: Tuesday
icon: mdi:calendar
wakeweekday_wed_1:
name: Wednesday
icon: mdi:calendar
wakeweekday_thu_1:
name: Thursday
icon: mdi:calendar
wakeweekday_fri_1:
name: Friday
icon: mdi:calendar
wakeweekday_sat_1:
name: Saturday
icon: mdi:calendar
#Input_datetime (nouveau par rapport au post 1)
input_datetime:
wake_time_1:
#Représente l'heure du réveil
name: wake_time_1
# has_date: false
has_time: true
#Input_select (nouveau par rapport au post 1)
input_select:
wakehour_1:
#Représente le choix de l'heure
name: wakehour_1
options:
- '00'
- '01'
- '02'
- '03'
- '04'
- '05'
- '06'
- '07'
- '08'
- '09'
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
wakeminutes_1:
#Représente le choix des minutes
name: wakeminutes_1
options:
- '00'
- '01'
- '02'
- '03'
- '04'
- '05'
- '06'
- '07'
- '08'
- '09'
- 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
#Scripts (inchangés par rapport au post 1)
script:
reveil1_alarm1:
sequence:
- data:
gw_mac: xxxxx
ringtone_id: 13
ringtone_vol: 50
service: media_player.hp_bureau_gauche
- delay:
seconds: 6
- service: script.reveil1_alarm2
mode: parallel
max: 10
reveil1_alarm2:
sequence:
- data:
gw_mac: xxxx
ringtone_id: 13
ringtone_vol: 75
service: media_player.hp_bureau_gauche
- delay:
seconds: 6
- service: script.reveil1_alarm1
mode: parallel
max: 10
reveil1_alarm3:
sequence:
- repeat:
count: 180
sequence:
- data:
gw_mac: xxxxx
ringtone_id: 13
ringtone_vol: 40
service: media_player.hp_bureau_gauche
- delay:
seconds: 6
mode: restart
alarm_snooze:
alias: Alarm was Snooze
sequence:
- service: script.alarmclock_off
- delay:
seconds: 300
- service: script.turn_on
entity_id:
- script.reveil1_alarm3
- delay:
seconds: 300
- service: script.turn_on
entity_id:
- script.alarmclock_off
alarmclock_off:
alias: Alarm was disarmed
sequence:
- service: script.turn_off
data:
entity_id:
- script.reveil1_alarm3
automation:
- id: 'wake_1_update_time' #nouvelle par rapport au post 1
# Automatisation qui met à jour le input_datetime 'wake_time_1' représentant l'heure du reveil
# en fonction des input_select représentants les heures et les minutes
alias: wake_1_update_time
trigger:
- platform: state
entity_id: input_select.wakehour_1
- platform: state
entity_id: input_select.wakeminutes_1
action:
- service: input_datetime.set_datetime
entity_id: input_datetime.wake_time_1
data_template:
time: '{{states("input_select.wakehour_1")}}:{{states("input_select.wakeminutes_1")}}:00'
- id: 'wake_1_detect_time' #modifiée par rapport au post 1 pour la partie déclenchement (trigger)
# Automatisation qui s'enclenche quand l'heure du système est égale à l'heure de l'input_datetime.wake_time_1
alias: Wake 1
trigger:
platform: template
value_template: "{{states('sensor.time') == (state_attr('input_datetime.wake_time_1','timestamp') | int | timestamp_custom('%H:%M', False))}}"
condition:
condition: template
value_template: >
{% set today = 'input_boolean.wakeweekday_' ~ now().strftime("%a") | lower ~ '_1' %}
{{ is_state('input_boolean.wakestatus_1', 'on') and is_state(today, 'on') }}
action:
service: input_boolean.turn_on
entity_id: input_boolean.wakeactivated_1
- id: 'wake_1_alarm_activated' #inchangée par rapport au post 1
alias: 'Wake 1 Activated'
trigger:
platform: state
entity_id: input_boolean.wakeactivated_1
from: 'off'
to: 'on'
action:
service: script.turn_on
entity_id:
- script.reveil1_alarm1
Est-ce que le fait de mettre le code pour sensor.time dans /config/configuration.yaml et le reste dans /config/packages/reveil, pourrait poser un problème ?
Je viens de faire une bétise, je pense. Croyant pouvoir recréer les entités, automatisations, je les ai effacés et je ne parviens plus çà les récupérer. Puis-je corriger le souci ? merci
EDIT:
Le plus simple n’est-ce pas de renommer les entités pour que HA les recréer avec un autre nom ? Mais, c’est dommage d’en arriver là.
EDIT2: je suis parvenu à effacer toutes les entités créées en supprimant card-mod, pour pouvoir recommencer à zéro.
Bonjour
Dans le message : Un réveil sur Home assistant - #38 par Clemalex
Lorsque tu parles @Clemalex d’ajouter les actions, c’est quoi exactement ?
#<AJOUTER LES ACTIONS DU REVEIL>
#<AJOUTER LES ACTIONS DU REVEIL>
#<AJOUTER LES ACTIONS DU REVEIL>
et
# - Action supplémentaire
# - Action supplémentaire
# - Action supplémentaire
c’est cela ,
script:
xiaomi_alarm1:
sequence:
- data:
gw_mac: 0123456789
ringtone_id: 13
ringtone_vol: 50
service: xiaomi_aqara.play_ringtone
- delay:
seconds: 6
- service: script.xiaomi_alarm2
mode: parallel
max: 10
xiaomi_alarm2:
sequence:
- data:
gw_mac: 0123456789
ringtone_id: 13
ringtone_vol: 75
service: xiaomi_aqara.play_ringtone
- delay:
seconds: 6
- service: script.xiaomi_alarm1
mode: parallel
max: 10
xiaomi_alarm3:
sequence:
- repeat:
count: 180
sequence:
- data:
gw_mac: 0123456789
ringtone_id: 13
ringtone_vol: 40
service: xiaomi_aqara.play_ringtone
- delay:
seconds: 6
mode: restart
alarm_snooze:
alias: Alarm was Snooze
sequence:
- service: script.alarmclock_off
- delay:
seconds: 300
- service: script.turn_on
entity_id:
- script.xiaomi_alarm3
- delay:
seconds: 300
- service: script.turn_on
entity_id:
- script.alarmclock_off
alarmclock_off:
alias: Alarm was disarmed
sequence:
- service: script.turn_off
data:
entity_id:
- script.xiaomi_alarm3
Un très grand merci
Ça doit être un copier/merder.
Le code posté dans le message est (était) fonctionnel en l’état…
bonjour,
j’essai de reproduire votre réveil, mais je m’y perd un peu, est il possible de remettre les derniers, code et code de carte. Merci, a priori j’ai un souci avec le sensor.time, je le met dans mes sensors mais il ne remonte pas
merci pour votre aide
Le mien ressemble à ceci
Bonjour, recent sur le site je commence a m’intéresser a Home Assistant, ne maitrisant pas completement tous les concepts, peux-tu me partager ton code si tu veux bien, ca participera à mon apprentissage. Je te remercie.
Hello Jane_Rey,
Super boulot! Je cherche désespérément à faire un radio réveil sur HA qui me permet d’avoir la radio sur un groupe d’enceinte Google.
Je suis ultra intéressé par ce que tu as fait. Si possible d’avoir des explications je suis preneur.
Merci d’avance.
Fab
[{"id":"cdd51759fb44a193","type":"tab","label":"Flux 1","disabled":false,"info":"","env":[]},{"id":"6eb17b5eb3ec12ef","type":"api-current-state","z":"cdd51759fb44a193","name":"Mercredi ?","server":"6f1918eeef2fa9ec","version":3,"outputs":2,"halt_if":"mercredi","halt_if_type":"str","halt_if_compare":"is","entity_id":"sensor.jour","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":390,"y":220,"wires":[["be6179c30ab312ba"],[]]},{"id":"d453179b135bd40c","type":"api-current-state","z":"cdd51759fb44a193","name":"Mardi ?","server":"6f1918eeef2fa9ec","version":3,"outputs":2,"halt_if":"mardi","halt_if_type":"str","halt_if_compare":"is","entity_id":"sensor.jour","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":380,"y":160,"wires":[["ca4db7a6c3946de9"],[]]},{"id":"91a22cbaab948514","type":"api-current-state","z":"cdd51759fb44a193","name":"Lundi ?","server":"6f1918eeef2fa9ec","version":3,"outputs":2,"halt_if":"lundi","halt_if_type":"str","halt_if_compare":"is","entity_id":"sensor.jour","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":380,"y":100,"wires":[["4c44ccb608c90f32"],[]]},{"id":"8d7cc562f574632e","type":"api-current-state","z":"cdd51759fb44a193","name":"Jeudi ?","server":"6f1918eeef2fa9ec","version":3,"outputs":2,"halt_if":"jeudi","halt_if_type":"str","halt_if_compare":"is","entity_id":"sensor.jour","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":380,"y":280,"wires":[["b595e111ada19c9c"],[]]},{"id":"2d5885f7981f4d84","type":"api-current-state","z":"cdd51759fb44a193","name":"Vendredi ?","server":"6f1918eeef2fa9ec","version":3,"outputs":2,"halt_if":"vendredi","halt_if_type":"str","halt_if_compare":"is","entity_id":"sensor.jour","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":390,"y":340,"wires":[["af1d30290f4bd52e"],[]]},{"id":"c0316e659417e523","type":"api-current-state","z":"cdd51759fb44a193","name":"Samedi ?","server":"6f1918eeef2fa9ec","version":3,"outputs":2,"halt_if":"samedi","halt_if_type":"str","halt_if_compare":"is","entity_id":"sensor.jour","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":380,"y":400,"wires":[["6f9511174d92eb9e"],[]]},{"id":"62f6a28c860fc5ec","type":"api-current-state","z":"cdd51759fb44a193","name":"Dimanche ?","server":"6f1918eeef2fa9ec","version":3,"outputs":2,"halt_if":"dimanche","halt_if_type":"str","halt_if_compare":"is","entity_id":"sensor.jour","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":390,"y":460,"wires":[["c4f85c8a95b8270d"],[]]},{"id":"71c8d1b9e1ad0e09","type":"api-current-state","z":"cdd51759fb44a193","name":"Alarme On ?","server":"6f1918eeef2fa9ec","version":3,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","entity_id":"input_boolean.alarme","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":170,"y":300,"wires":[["91a22cbaab948514","d453179b135bd40c","6eb17b5eb3ec12ef","8d7cc562f574632e","2d5885f7981f4d84","c0316e659417e523","62f6a28c860fc5ec"],[]]},{"id":"4c44ccb608c90f32","type":"api-current-state","z":"cdd51759fb44a193","name":"Lundi on ?","server":"6f1918eeef2fa9ec","version":3,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","entity_id":"input_boolean.wakeweekday_lun_1","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":590,"y":100,"wires":[["e5e578f0b0188164"],[]]},{"id":"ca4db7a6c3946de9","type":"api-current-state","z":"cdd51759fb44a193","name":"Mardi on ?","server":"6f1918eeef2fa9ec","version":3,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","entity_id":"input_boolean.wakeweekday_mar_1","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":590,"y":160,"wires":[["e5e578f0b0188164"],[]]},{"id":"be6179c30ab312ba","type":"api-current-state","z":"cdd51759fb44a193","name":"Mercredi on ?","server":"6f1918eeef2fa9ec","version":3,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","entity_id":"input_boolean.wakeweekday_mer_1","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":600,"y":220,"wires":[["e5e578f0b0188164"],[]]},{"id":"b595e111ada19c9c","type":"api-current-state","z":"cdd51759fb44a193","name":"Jeudi on ?","server":"6f1918eeef2fa9ec","version":3,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","entity_id":"input_boolean.wakeweekday_jeu_1","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":590,"y":280,"wires":[["e5e578f0b0188164"],[]]},{"id":"af1d30290f4bd52e","type":"api-current-state","z":"cdd51759fb44a193","name":"Vendredi on ?","server":"6f1918eeef2fa9ec","version":3,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","entity_id":"input_boolean.wakeweekday_ven_1","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":600,"y":340,"wires":[["e5e578f0b0188164"],[]]},{"id":"6f9511174d92eb9e","type":"api-current-state","z":"cdd51759fb44a193","name":"Samedi on ?","server":"6f1918eeef2fa9ec","version":3,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","entity_id":"input_boolean.wakeweekday_sam_1","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":590,"y":400,"wires":[["e5e578f0b0188164"],[]]},{"id":"c4f85c8a95b8270d","type":"api-current-state","z":"cdd51759fb44a193","name":"Dimanche on ?","server":"6f1918eeef2fa9ec","version":3,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","entity_id":"input_boolean.wakeweekday_dim_1","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":600,"y":460,"wires":[["e5e578f0b0188164"],[]]},{"id":"095f960b696087dc","type":"inject","z":"cdd51759fb44a193","name":"","props":[{"p":"payload","v":"true","vt":"bool"},{"p":"topic","v":"1","vt":"string"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"1","payload":"true","payloadType":"bool","x":150,"y":440,"wires":[["71c8d1b9e1ad0e09"]]},{"id":"020e5c99b1be8f0a","type":"ha-time","z":"cdd51759fb44a193","name":"time","server":"6f1918eeef2fa9ec","version":3,"exposeAsEntityConfig":"","entityId":"input_datetime.stop_time","property":"","offset":"0","offsetType":"num","offsetUnits":"minutes","randomOffset":false,"repeatDaily":true,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"sunday":true,"monday":true,"tuesday":true,"wednesday":true,"thursday":true,"friday":true,"saturday":true,"x":150,"y":540,"wires":[["ab167e295d31a44d"]]},{"id":"13fb3c5001cefe11","type":"api-call-service","z":"cdd51759fb44a193","name":"eteind lumiere cyrille","server":"6f1918eeef2fa9ec","version":5,"debugenabled":false,"domain":"switch","service":"turn_off","areaId":[],"deviceId":["4efc4c2120c976c44ab176ecd9070fc0"],"entityId":[],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":640,"y":580,"wires":[[]]},{"id":"0ff3a7c58e7f8379","type":"api-call-service","z":"cdd51759fb44a193","name":"Stop reveill","server":"6f1918eeef2fa9ec","version":5,"debugenabled":false,"domain":"media_player","service":"turn_off","areaId":[],"deviceId":["7184a5bbbb750984bfa83aa3ef144f72","be12e970a5703eb0a0fb50e95d95a184"],"entityId":[],"data":"","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[{"property":"playlist_id","propertyType":"msg","value":"PL-a8YGDlatFqXjNR4FXCNNsS8mOrNLXzt","valueType":"str"}],"queue":"none","x":610,"y":520,"wires":[[]]},{"id":"e5e578f0b0188164","type":"api-current-state","z":"cdd51759fb44a193","name":"Alarme On ?","server":"6f1918eeef2fa9ec","version":3,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","entity_id":"input_boolean.alarme","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":810,"y":180,"wires":[["46599265c0d406c3"],[]]},{"id":"2b5887788835dedc","type":"inject","z":"cdd51759fb44a193","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"true","payloadType":"bool","x":850,"y":300,"wires":[["46599265c0d406c3"]]},{"id":"244768d540507052","type":"ha-time","z":"cdd51759fb44a193","name":"time","server":"6f1918eeef2fa9ec","version":3,"exposeAsEntityConfig":"","entityId":"input_datetime.alarme_time","property":"","offset":"0","offsetType":"num","offsetUnits":"minutes","randomOffset":false,"repeatDaily":true,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"sunday":true,"monday":true,"tuesday":true,"wednesday":true,"thursday":true,"friday":true,"saturday":true,"x":110,"y":160,"wires":[["71c8d1b9e1ad0e09"]]},{"id":"46599265c0d406c3","type":"api-call-service","z":"cdd51759fb44a193","name":"Cyrille V+","server":"6f1918eeef2fa9ec","version":5,"debugenabled":false,"domain":"media_player","service":"volume_set","areaId":[],"deviceId":[],"entityId":["media_player.nestaudio0171"],"data":"{\"volume_level\":\"0.5\"}","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":980,"y":240,"wires":[["7ff43994771ce3fa"]]},{"id":"ab167e295d31a44d","type":"api-current-state","z":"cdd51759fb44a193","name":"Alarme On ?","server":"6f1918eeef2fa9ec","version":3,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","entity_id":"input_boolean.alarme","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":390,"y":540,"wires":[["0ff3a7c58e7f8379","13fb3c5001cefe11"],[]]},{"id":"7ff43994771ce3fa","type":"api-call-service","z":"cdd51759fb44a193","name":"Radio FG at work","server":"6f1918eeef2fa9ec","version":5,"debugenabled":false,"domain":"media_player","service":"play_media","areaId":[],"deviceId":[],"entityId":["media_player.nestaudio0171"],"data":"{\"media_content_id\":\"http://radiofg.impek.com/fge\",\"media_content_type\":\"music\"}","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1190,"y":280,"wires":[[]]},{"id":"e7db67b0e31bc416","type":"inject","z":"cdd51759fb44a193","name":"","props":[{"p":"payload","v":"true","vt":"bool"},{"p":"topic","v":"1","vt":"string"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"1","payload":"true","payloadType":"bool","x":150,"y":600,"wires":[["ab167e295d31a44d"]]},{"id":"6f1918eeef2fa9ec","type":"server","name":"Home Assistant","version":5,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true,"heartbeat":false,"heartbeatInterval":"30","areaSelector":"friendlyName","deviceSelector":"friendlyName","entitySelector":"friendlyName","statusSeparator":": ","statusYear":"hidden","statusMonth":"short","statusDay":"numeric","statusHourCycle":"default","statusTimeFormat":"h:m","enableGlobalContextStore":true}]
Voici le nod-red
Les input_datetime :
input_datetime:
alarme_time:
name: Heure de l'alarme
has_date: false
has_time: true
time:
name: time
has_date: false
has_time: true
stop_time:
name: Extinction de l'alarme
has_date: false
has_time: true
les input_boolean :
alarme:
name: Alarme
wakeweekday_dim_1:
name: Dimanche
icon: mdi:calendar
wakeweekday_lun_1:
name: Lundi
icon: mdi:calendar
wakeweekday_mar_1:
name: Mardi
icon: mdi:calendar
wakeweekday_mer_1:
name: Mercredi
icon: mdi:calendar
wakeweekday_jeu_1:
name: Jeudi
icon: mdi:calendar
wakeweekday_ven_1:
name: Vendredi
icon: mdi:calendar
wakeweekday_sam_1:
name: Samedi
icon: mdi:calendar
Les Cartes
type: entities
entities:
- entity: input_boolean.alarme
- entity: input_datetime.alarme_time
- entity: input_datetime.stop_time
- entity: sensor.date
- entity: sensor.time
- entity: sensor.jour
- entity: input_number.slider1
title: Alame
show_header_toggle: false
state_color: false
type: entities
entities:
- entity: input_boolean.wakeweekday_lun_1
- entity: input_boolean.wakeweekday_mar_1
- entity: input_boolean.wakeweekday_mer_1
- entity: input_boolean.wakeweekday_jeu_1
- entity: input_boolean.wakeweekday_ven_1
- entity: input_boolean.wakeweekday_sam_1
- entity: input_boolean.wakeweekday_dim_1
title: Jour d'alame
show_header_toggle: false
state_color: false
Un enorme merci pour ton aide et ta réponse super rapide. Je vais regarder comment intégrer ca et je te fais un retour si j’arrive à tout faire fonctionner.
Hello Jane_Rey,
Alors n’étant pas un Dev accomplis mais plutôt l’inverse et sans vouloir abuser , possible d’avoir comme une sorte de notice
Je suppose que le code pour les cartes va être celui qui te permet de faire le graphique avec les boutons et le slider.
Du coup le nod-red et les imput_datetime et les imput_boolean ca doit aller dans mon configuration.yaml ?
Je me bas avec ce configuration.yaml, dès que j’essais de mettre du code dedans j’ai toujours pleins d’erreur.
D’avance un grand grand merci pour ton aide.
Fabien
ce que je peut te proposer, c’est un peut de segmentation,
dans ton configuration.yaml :
input_boolean: !include input_boolean.yaml
input_datetime: !include input_datetime.yaml
tu crer les deux fichier input_boolean.yaml et datetime
et dans input_boolean.yaml tu écris :
wakeweekday_dim_1:
name: Dimanche
icon: mdi:calendar
wakeweekday_lun_1:
name: Lundi
icon: mdi:calendar
etc …
Hello,
Super. Merci pour ton retour. Désolé pour toutes ces questions mais je débute vraiment. Faut que je prenne des cours en yaml
C’est bon j’ai créé les deux fichiers et collé le code dedans. Par contre j’obtient ces erreurs :
Avertissements de configuration
Invalid config for ‹ input_datetime › at input_datetime.yaml, line 10: ‹ stop_time › is an invalid option for ‹ input_datetime ›, check: input_datetime->input_datetime->stop_time Invalid config for ‹ input_datetime › at input_datetime.yaml, line 2: ‹ alarme_time › is an invalid option for ‹ input_datetime ›, check: input_datetime->input_datetime->alarme_time Invalid config for ‹ input_datetime › at input_datetime.yaml, line 6: ‹ time › is an invalid option for ‹ input_datetime ›, check: input_datetime->input_datetime->time
La je suis en train de regarder le gros morceaux de ton code. J’ai l’impression que ca correspond à tes automatismes, l’allumage de la lumières et la diffusion de la musique.
Et ce que je suppose également c’est qu’en ajoutant une carte custom et en copiant la partie entities je vais obtenir Alarme et Jours d’Alarme sur mon Dashboard.
J’ai bon?
Edit du soir:
Ca avance!!!
Hello tout le monde,
@Jare_Rey bon j’arrive toujours pas à comprendre comment créer les dernières entités qui me manque.
Possible d’avoir un micro coup de main
Merci d’avance pour ton aide.
Fabien
Toujours pas réussi ?
Hello @Jare_Rey ,
Merci de prendre le temps de me répondre. Malheureusement non. Je n’arrive toujours pas malgré mes recherches à créer les entités qui me manque.
Merci d’avance pour ton aide.
Fabien
Pour sensor.jour je te redirige vers mon post : Afficher le jour de la semaine
Pour l’input_datetime.alarme_time
Dans configuration.yaml tu met :
input_datetime: !include input_datetime.yaml
Dans ton fichier input_datetime.yaml tu met :
alarme_time:
name: Heure de l'alarme
has_date: false
has_time: true
stop_time:
name: Extinction de l'alarme
has_date: false
has_time: true
Pour le slider1 réglage volume, j’ai mit ça mais il n’y a pas d’automatisation pour ça dans mon nod red
Hello @Jare_Rey ,
Merci beaucoup pour ton retour. J’avais regardé comment créer un sensor à la main mais je ne m’en sortais pas. Bon un grand merci à toi c’est bon l’entité remonte.
Je viens de comprendre aussi que j’ai du faire de la merde sur le code car je vois mieux pourquoi les deux entités alarme_time et stop_time ne remontent pas.
J’ai ce message d’erreur et à mon avis ca aide pas
Voila mon code actuel:
input_datetime:
alarme_time:
name: Heure de l'alarme
has_date: false
has_time: true
time:
name: time
has_date: false
has_time: true
stop_time:
name: Extinction de l'alarme
has_date: false
has_time: true
Le code que tu montre, tu ne dit pas de quel nom de fichier il s’agit ! A en voir ton erreur, si j’ai bien compris, elle est d’actualité ?
Si oui, et que le code que tu me montre viens de input_datetime.yaml ! C’est normal que tu es une erreur.
Tu ne suis pas ce que je t’ai dit!
Soit tu utilises !include soit tu l’utilise pas.
Désolé je ne donne pas toutes les infos tu as entièrement raison, j’utilise bien des imput dans mon configuration.yaml:
input_boolean: !include input_boolean.yaml
input_datetime: !include input_datetime.yaml
Je confirme que l’erreur est d’actualité.
Edit de 18h11:
Je viens de virer le input_datetime: et c’est marrant mais j’ai plus d’erreur
C’est ma faute c’est ma faute c’est ma très grande faute…
Merci pour ton temps, ta patience et désolé pour ma bêtise lol