This commit is contained in:
Ingolf Wagner 2021-01-17 16:57:35 +01:00
parent 880d5187c9
commit 4da544fee8
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B
2 changed files with 43 additions and 46 deletions

View file

@ -145,35 +145,34 @@ in {
to = "off"; to = "off";
} }
]; ];
action = [ action = [{
{ service = "input_select.select_option";
service = "input_select.select_option"; data = {
data = { entity_id = "input_select.scene";
entity_id = "input_select.scene"; option = "outside";
option = "outside"; };
}; }
} #{
#{ # service = "input_select.select_option";
# service = "input_select.select_option"; # data_template = {
# data_template = { # entity_id = "input_select.heater_state_memory";
# entity_id = "input_select.heater_state_memory"; # option = ''
# option = '' # {% if not is_state("input_select.heater_state", "off") %}
# {% if not is_state("input_select.heater_state", "off") %} # {{ states('input_select.heater_state') }}
# {{ states('input_select.heater_state') }} # {%- else -%}
# {%- else -%} # {{ states('input_select.heater_state_memory') }}
# {{ states('input_select.heater_state_memory') }} # {%- endif %}
# {%- endif %} # '';
# ''; # };
# }; #}
#} #{
#{ # service = "input_select.select_option";
# service = "input_select.select_option"; # data = {
# data = { # entity_id = "input_select.heater_state";
# entity_id = "input_select.heater_state"; # option = "off";
# option = "off"; # };
# }; #}
#} ];
];
} }
{ {
@ -198,22 +197,21 @@ in {
value_template = value_template =
''{{ states.input_select.scene.state == "outside" }}''; ''{{ states.input_select.scene.state == "outside" }}'';
}; };
action = [ action = [{
{ service = "input_select.select_option";
service = "input_select.select_option"; data = {
data = { entity_id = "input_select.scene";
entity_id = "input_select.scene"; option = "default";
option = "default"; };
}; }
} #{
#{ # service = "input_select.select_option";
# service = "input_select.select_option"; # data_template = {
# data_template = { # entity_id = "input_select.heater_state";
# entity_id = "input_select.heater_state"; # option = "{{ states('input_select.heater_state_memory') }}";
# option = "{{ states('input_select.heater_state_memory') }}"; # };
# }; #}
#} ];
];
} }
# window roles # window roles

View file

@ -17,7 +17,6 @@ let
# domain will redirect to this map. (not play.${domain}) # domain will redirect to this map. (not play.${domain})
defaultMap = "mrvandalo.github.io/workadventure-worlds/main.json"; defaultMap = "mrvandalo.github.io/workadventure-worlds/main.json";
apiURL = "api.${domain}"; apiURL = "api.${domain}";
apiPort = 9002; apiPort = 9002;