Skip to content

Commit

Permalink
v1.4.0-beta.69
Browse files Browse the repository at this point in the history
- Added new scheduling API command `Scheduling.Templates` to get the list of available preset actions templates
- Added italian translations for scheduling wizard
  • Loading branch information
genemars committed Apr 15, 2024
1 parent 237cc2a commit c3c630b
Show file tree
Hide file tree
Showing 15 changed files with 193 additions and 194 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

160 changes: 0 additions & 160 deletions assets/build/all/app/assets/editor/templates/scheduler/index.json

This file was deleted.

This file was deleted.

This file was deleted.

41 changes: 40 additions & 1 deletion assets/build/all/app/assets/i18n/homegenie/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,46 @@
"No action",
"cronwizard_action_schedule_variable_hint":
"Use <span class=\"color-primary\">@{{name}}</span> as a variable in cron expressions or use <span class=\"color-primary\">Scheduler.IsScheduling(\"@{{name}}\")</span> in automation programs to reference this event.",
" ":"--------------- PROGRAM EDITOR ------------------",
" ":"--------------- SCHEDULER WIZARD ----------------",
"scheduler_preset_action_command_turn_on":
"Turn on",
"scheduler_preset_action_command_turn_off":
"Turn off",
"scheduler_preset_action_command_set_level":
"Set level",
"scheduler_preset_action_config_level":
"Level",
"scheduler_preset_action_command_set_color":
"Set color",
"scheduler_preset_action_config_color":
"Color",
"scheduler_preset_action_command_thermostat_mode":
"Thermostat mode",
"scheduler_preset_action_config_mode":
"Mode",
"scheduler_preset_action_config_mode_on":
"On",
"scheduler_preset_action_config_mode_off":
"Off",
"scheduler_preset_action_config_mode_heat":
"Heat",
"scheduler_preset_action_config_mode_heat_eco":
"Heat economy",
"scheduler_preset_action_config_mode_cool":
"Cool",
"scheduler_preset_action_config_mode_cool_eco":
"Cool economy",
"scheduler_preset_action_program_run":
"Run program",
"scheduler_preset_action_config_program":
"Program",
"scheduler_preset_action_config_options":
"Options",
"scheduler_preset_action_program_say":
"Say",
"scheduler_preset_action_config_message":
"Message",
" ":"---------------- PROGRAM EDITOR -----------------",
"save_and_build":
"Save and build",
"toggle_widgets_preview":
Expand Down
39 changes: 39 additions & 0 deletions assets/build/all/app/assets/i18n/homegenie/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,45 @@
"Nessuna azione",
"cronwizard_action_schedule_variable_hint":
"Utilizza <span class=\"color-primary\">@{{name}}</span> come variabile nelle espressioni cron o utilizza <span class=\"color-primary\">Scheduler.IsScheduling(\"@{{name}}\")</span> nei programmi di automazione per fare riferimento a questo evento.",
" ":"--------------- SCHEDULER WIZARD ----------------",
"scheduler_preset_action_command_turn_on":
"Accendi",
"scheduler_preset_action_command_turn_off":
"Spegni",
"scheduler_preset_action_command_set_level":
"Imposta livello",
"scheduler_preset_action_config_level":
"Livello",
"scheduler_preset_action_command_set_color":
"Imposta colore",
"scheduler_preset_action_config_color":
"Colore",
"scheduler_preset_action_command_thermostat_mode":
"Imposta termostato",
"scheduler_preset_action_config_mode":
"Modalità",
"scheduler_preset_action_config_mode_on":
"Acceso",
"scheduler_preset_action_config_mode_off":
"Spento",
"scheduler_preset_action_config_mode_heat":
"Caldo",
"scheduler_preset_action_config_mode_heat_eco":
"Caldo eco",
"scheduler_preset_action_config_mode_cool":
"Freddo",
"scheduler_preset_action_config_mode_cool_eco":
"Freddo eco",
"scheduler_preset_action_program_run":
"Esegui programma",
"scheduler_preset_action_config_program":
"Programma",
"scheduler_preset_action_config_options":
"Opzioni",
"scheduler_preset_action_program_say":
"Parla",
"scheduler_preset_action_config_message":
"Messaggio",
" ":"--------------- PROGRAM EDITOR ------------------",
"save_and_build":
"Salva e compila",
Expand Down
100 changes: 100 additions & 0 deletions assets/build/all/app/assets/scheduler/preset-actions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
[
{
"id": "command_turn_on",
"script": "$$.boundModules.on();\n"
},
{
"id": "command_turn_off",
"script": "$$.boundModules.off();\n"
},
{
"id": "command_set_level",
"script": "$$.boundModules.level = $level$;\n",
"config": {
"level": {
"type": "slider",
"options": {
"min": 0,
"max": 100,
"step": 1
},
"value": 0
}
}
},
{
"id": "command_set_color",
"script": "$$.boundModules.colorHsb = '$color$';\n",
"config": {
"color": {
"type": "color",
"value": "#ff0000",
"transform": "rgb:hsb"
}
}
},
{
"id": "command_thermostat_mode",
"script": "$$.boundModules\n .command('Thermostat.ModeSet')\n .submit('$mode$');\n",
"config": {
"mode": {
"type": "select",
"options": [
{
"id": "off",
"value": "Off"
},
{
"id": "heat",
"value": "Heat"
},
{
"id": "heat_eco",
"value": "HeatEconomy"
},
{
"id": "cool",
"value": "Cool"
},
{
"id": "cool_eco",
"value": "CoolEconomy"
}
],
"value": "Off"
}
}
},
{
"id": "program_run",
"script": "$$.program.run('$program$', '$options$');\n",
"config": {
"program": {
"options": {
},
"type": "program-select",
"value": 0
},
"options": {
"options": {
"maxLength": 200
},
"type": "text",
"value": ""
}
}
},
{
"id": "program_say",
"script": "$$.program.say('$message$');\n",
"config": {
"message": {
"options": {
"maxLength": 200
},
"type": "text",
"value": ""
}
}
}
]
2 changes: 1 addition & 1 deletion assets/build/all/app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,6 @@

</div>

<script src="runtime.b92e2ca178ebbf4a.js" type="module"></script><script src="polyfills.a360d6e45b80c065.js" type="module"></script><script src="scripts.0dcb4f0a61221c18.js" defer></script><script src="main.e731d91cd2efa567.js" type="module"></script>
<script src="runtime.b92e2ca178ebbf4a.js" type="module"></script><script src="polyfills.a360d6e45b80c065.js" type="module"></script><script src="scripts.0dcb4f0a61221c18.js" defer></script><script src="main.f9f19d3de6ada0f8.js" type="module"></script>

</body></html>

Large diffs are not rendered by default.

Loading

0 comments on commit c3c630b

Please sign in to comment.