Skip to content

Commit

Permalink
Ticket #173: Added significant updates to the controlability of the t…
Browse files Browse the repository at this point in the history
…ime schedules and translations
  • Loading branch information
frodeheg committed Apr 22, 2023
1 parent b4083c2 commit 68c2bf0
Show file tree
Hide file tree
Showing 5 changed files with 192 additions and 65 deletions.
31 changes: 30 additions & 1 deletion locales/en.json
Expand Up @@ -25,7 +25,36 @@
"basetemp": "Basistemp",
"schedule": "Current schedule",
"schedules": "Schedules",
"controlledOn": "Controlled On"
"operations": {
"alwaysOn": "Always On",
"alwaysOff": "Always Off",
"controlledOn": "Preferred On",
"controlledOff": "On until Off",
"ignore": "Ignore"
},
"opHelp": {
"alwaysOn": "Affected units are never turned off. The Power tariff is met by controlling temperatures. Please do not use this to control relays as the power tariff cannot be met when they cannot be turned off.",
"alwaysOff": "Affected units are kept off no matter what.",
"controlledOn": "Affected units are on as much as possible. They can be turned off to keep the power tariff. If devices are being turned off they will turn on again when sufficient power is available. Thermostat devices will change temperature instead of turning on/off.",
"controlledOff": "Similar to 'Preferred On' except for devices turned off will not be turned on again. Thermostat devices will act as 'Preferred On'",
"ignore": "Affected units will not turn on or off. If it is on then the temperature will be controlled, if it's off then nothing will happen."
},
"hint": {
"onOffOperation": "The on/off operations are as follows:",
"tempOp": ["When temperature control is enabled then Temperatures are preferred to control the power tariff rather than on/off. If temperature control is disabled then only on/off operations will be used to control the power tariff.<!--",
"--><p>Fixed temperatures are good when you have fixed electricity prices while price-controlled temperatures allow you to set a range of temperatures depending on the prices.</p>"],
"ACMode": ["This is only applicable for AC devices. If the device being controlled is an AC device the mode will change as set here (as long as the device supports the available mode).<!--",
"--><p><b>Heating</b>: Will use the temperature range set for heating. When insufficient power the minimum temperature is set.</p><!--",
"--><p><b>Cooling</b>: Will use the temperature range set for cooling. When insufficient power the maximum temperature is set.</p><!--",
"--><p><b>Auto</b>: Sets a single temperature. Will use On/Off to meet the power tariff</p><!--",
"--><p><b>Fan / Dry</b>: No temperatures. Will use On/Off to meet the power tariff</p><!--",
"--><p><b>Piggy</b>: This will switch between heating and cooling depending on the actual temperature. The temperature triggers for switching mode is the one set for 'normal prices'.</p>",
"--><p><b>Unchanged</b>: This mode will not change your AC mode at all. It will detect the current Mode and act accordingly.</p>"],
"myThermo": ["The temperature wheel allows you to set up to 12 different temperatures. Only those that are applicable to the settings you have chosen will be visible.<!--",
"--><p>'Off temperature' is the temperature used when trying to keep the power tariff. There is one off temperature when heating is enabled and another one when cooling is enabled.</p><!--",
"--><p>'Heating temperature range' There are up to 5 temperatures that can be set for heating. The lowest is used when the prices are high while the highest is used when the prices are low.</p><!--",
"--><p>'Cooling temperature range' There are up to 5 temperatures that can be set for cooling. The lowest is used when the prices are low while the highest is used when the prices are high.</p>"]
}
},
"charge": {
"header": "Car chargers",
Expand Down
31 changes: 30 additions & 1 deletion locales/fr.json
Expand Up @@ -25,7 +25,36 @@
"basetemp": "Basistemp",
"schedule": "Calendrier actuel",
"schedules": "Calendriers",
"controlledOn": "Contrôlé sur"
"opérations": {
"alwaysOn": "Toujours activé",
"alwaysOff": "Toujours désactivé",
"controlledOn": "Préféré activé",
"controledOff": "On jusqu'à Off",
"ignorer": "Ignorer"
},
"opHelp": {
"alwaysOn": "Les unités concernées ne sont jamais éteintes. Le tarif d'alimentation est satisfait en contrôlant les températures. Veuillez ne pas l'utiliser pour contrôler les relais car le tarif d'alimentation ne peut pas être respecté lorsqu'ils ne peuvent pas être éteints.",
"alwaysOff": "Les unités affectées sont tenues à l'écart quoi qu'il arrive.",
"controlledOn": "Les unités concernées sont allumées autant que possible. Elles peuvent être éteintes pour conserver le tarif de l'électricité. Si les appareils sont éteints, ils se rallumeront lorsqu'une puissance suffisante sera disponible. Les thermostats changeront de température au lieu de s'allumer Allumé éteint.",
"controlledOff": "Similaire à 'Preferred On' sauf que les appareils éteints ne seront pas rallumés. Les thermostats agiront comme 'Preferred On'",
"ignore": "Les unités concernées ne s'allumeront ni ne s'éteindront. S'il est allumé, la température sera contrôlée, s'il est éteint, rien ne se passera."
},
"indice": {
"onOffOperation": "Les opérations marche/arrêt sont les suivantes :",
"tempOp": ["Lorsque le contrôle de la température est activé, les températures sont préférées pour contrôler le tarif de l'électricité plutôt que marche/arrêt. Si le contrôle de la température est désactivé, seules les opérations marche/arrêt seront utilisées pour contrôler le tarif de l'électricité.<!-- ",
"--><p>Les températures fixes sont bonnes lorsque vous avez des prix d'électricité fixes tandis que les températures contrôlées par les prix vous permettent de définir une plage de températures en fonction des prix.</p>"],
"ACMode": ["Ceci ne s'applique qu'aux appareils AC. Si l'appareil contrôlé est un appareil AC, le mode changera comme défini ici (tant que l'appareil prend en charge le mode disponible).<!--",
"--><p><b>Chauffage</b> : utilise la plage de température définie pour le chauffage. Lorsque la puissance est insuffisante, la température minimale est définie.</p><!--",
"--><p><b>Refroidissement</b> : utilisera la plage de température définie pour le refroidissement. Lorsque la puissance est insuffisante, la température maximale est définie.</p><!--",
"--><p><b>Auto</b> : définit une seule température. Utilisera Marche/Arrêt pour respecter le tarif électrique</p><!--",
"--><p><b>Ventilation / Déshumidification</b> : Aucune température. Utilisera Marche/Arrêt pour respecter le tarif électrique</p><!--",
"--><p><b>Piggy</b> : cela basculera entre le chauffage et le refroidissement en fonction de la température réelle. Les déclencheurs de température pour le mode de commutation sont ceux définis pour les "prix normaux".</p>" ,
"--><p><b>Inchangé</b> : ce mode ne changera pas du tout votre mode AC. Il détectera le mode actuel et agira en conséquence.</p>"],
"myThermo": ["La roue des températures vous permet de régler jusqu'à 12 températures différentes. Seules celles applicables aux réglages que vous avez choisis seront visibles.<!--",
"--><p>'Température d'arrêt' est la température utilisée lors de la tentative de maintien du tarif de l'électricité. Il y a une température d'arrêt lorsque le chauffage est activé et une autre lorsque le refroidissement est activé.</p><!--",
"--><p>'Plage de température de chauffage' Il y a jusqu'à 5 températures qui peuvent être réglées pour le chauffage. La plus basse est utilisée lorsque les prix sont élevés tandis que la plus élevée est utilisée lorsque les prix sont bas.</p>< !--",
"--><p>'Plage de température de refroidissement' Il y a jusqu'à 5 températures qui peuvent être réglées pour le refroidissement. La plus basse est utilisée lorsque les prix sont bas tandis que la plus élevée est utilisée lorsque les prix sont élevés.</p>" ]
}
},
"charge": {
"header": "Chargeurs de voiture",
Expand Down
31 changes: 30 additions & 1 deletion locales/nl.json
Expand Up @@ -25,7 +25,36 @@
"basetemp": "Basistemperatuur",
"schedule": "Huidige planning",
"schedules": "Planningen",
"controlledOn": "Gecontroleerd op"
"operations": {
"alwaysOn": "Altijd aan",
"alwaysOff": "Altijd uit",
"controlOn": "Voorkeur aan",
"controledOff": "Aan tot Uit",
"ignore": "Negeren"
},
"opHelp": {
"alwaysOn": "Getroffen eenheden worden nooit uitgeschakeld. Aan het stroomtarief wordt voldaan door het regelen van de temperatuur. Gebruik dit niet om relais te regelen, aangezien er niet aan het stroomtarief kan worden voldaan als ze niet kunnen worden uitgeschakeld.",
"alwaysOff": "Getroffen eenheden worden hoe dan ook uitgeschakeld.",
"controlledOn": "Getroffen apparaten staan zoveel mogelijk aan. Ze kunnen worden uitgeschakeld om het stroomtarief te behouden. Als apparaten worden uitgeschakeld, worden ze weer ingeschakeld wanneer er voldoende stroom beschikbaar is. Thermostaatapparaten veranderen de temperatuur in plaats van te draaien aan uit.",
"controlledOff": "Gelijk aan 'Voorkeur aan' behalve dat uitgeschakelde apparaten niet opnieuw worden ingeschakeld. Thermostaatapparaten werken als 'Voorkeur aan'",
"ignore": "Betrokken eenheden kunnen niet worden in- of uitgeschakeld. Als het aan is, wordt de temperatuur gecontroleerd, als het uit is, gebeurt er niets."
},
"hint": {
"onOffOperation": "De aan/uit-handelingen zijn als volgt:",
"tempOp": ["Als temperatuurregeling is ingeschakeld, hebben Temperaturen de voorkeur om het stroomtarief te regelen in plaats van aan/uit. Als temperatuurregeling is uitgeschakeld, worden alleen aan/uit-bewerkingen gebruikt om het stroomtarief te regelen.<!-- ",
"--><p>Vaste temperaturen zijn goed als u vaste elektriciteitsprijzen heeft, terwijl prijsgecontroleerde temperaturen u in staat stellen een reeks temperaturen in te stellen, afhankelijk van de prijzen.</p>"],
"ACMode": ["Dit is alleen van toepassing op AC-apparaten. Als het apparaat dat wordt bestuurd een AC-apparaat is, zal de modus veranderen zoals hier ingesteld (zolang het apparaat de beschikbare modus ondersteunt).<!--",
"--><p><b>Verwarming</b>: Gebruikt het ingestelde temperatuurbereik voor verwarming. Bij onvoldoende vermogen wordt de minimumtemperatuur ingesteld.</p><!--",
"--><p><b>Koelen</b>: Gebruikt het ingestelde temperatuurbereik voor koelen. Bij onvoldoende vermogen wordt de maximale temperatuur ingesteld.</p><!--",
"--><p><b>Auto</b>: Stelt een enkele temperatuur in. Zal Aan/Uit gebruiken om aan het stroomtarief te voldoen</p><!--",
"--><p><b>Ventilator / Drogen</b>: Geen temperaturen. Zal Aan/Uit gebruiken om aan het stroomtarief te voldoen</p><!--",
"--><p><b>Piggy</b>: Dit schakelt tussen verwarmen en koelen, afhankelijk van de werkelijke temperatuur. De temperatuurtriggers voor de schakelmodus zijn die ingesteld voor 'normale prijzen'.</p>" ,
"--><p><b>Ongewijzigd</b>: deze modus zal uw AC-modus helemaal niet veranderen. Het zal de huidige modus detecteren en dienovereenkomstig handelen.</p>"],
"myThermo": ["Met het temperatuurwiel kun je tot 12 verschillende temperaturen instellen. Alleen de temperaturen die van toepassing zijn op de instellingen die je hebt gekozen, zijn zichtbaar.<!--",
"--><p>'Uit-temperatuur' is de temperatuur die wordt gebruikt om het stroomtarief te behouden. Er is één uit-temperatuur wanneer verwarmen is ingeschakeld en een andere wanneer koelen is ingeschakeld.</p><!--",
"--><p>'Verwarmingstemperatuurbereik' Er zijn maximaal 5 temperaturen die kunnen worden ingesteld voor verwarming. De laagste wordt gebruikt als de prijzen hoog zijn en de hoogste wordt gebruikt als de prijzen laag zijn.</p><p> !--",
"--><p>'Koeltemperatuurbereik' Er kunnen maximaal 5 temperaturen worden ingesteld voor koeling. De laagste wordt gebruikt als de prijzen laag zijn en de hoogste wordt gebruikt als de prijzen hoog zijn.</p>" ]
}
},
"charge": {
"header": "Autoladers",
Expand Down
9 changes: 6 additions & 3 deletions settings/index.html
Expand Up @@ -37,7 +37,6 @@
var deviceText = "settings.mode.device";
var turnOnText = "settings.price.turnOn";
var turnOffText = "settings.price.turnOff";
var controlledOnText = "settings.schedule.controlledOn";
var minTempText = "settings.frost.minTemp";
var priorityText = "settings.mode.priority";
var alwaysOnText = "settings.mode.alwaysOn";
Expand Down Expand Up @@ -1521,8 +1520,13 @@ <h1 data-i18n="settings.title">.title</h1>
<div id="logPage" class="tabcontent">This page should not be missing. If you see this text please report it as an error</div>

<!-- Time schedule -->
<script type="text/javascript">
function onIframeLoad(iframe) {
console.log('Iframe was loaded');
}
</script>
<div id="schedulePage" class="tabcontent iframe-holder">
<iframe id="schedulePageInner" src="subpages/schedule.html" style="border:none;" frameborder="0" marginheight="0" marginwidth="0" referrerpolicy="same-origin" scrolling="no" ></iframe>
<iframe id="schedulePageInner" src="subpages/schedule.html" onload="onIframeLoad(this);" style="border:none;" frameborder="0" marginheight="0" marginwidth="0" referrerpolicy="same-origin" scrolling="no" ></iframe>
</div>

<!-- Price page -->
Expand Down Expand Up @@ -2106,7 +2110,6 @@ <h1 data-i18n="settings.title">.title</h1>
deviceText = Homey.__(deviceText);
turnOnText = Homey.__(turnOnText);
turnOffText = Homey.__(turnOffText);
controlledOnText = Homey.__(controlledOnText);
minTempText = Homey.__(minTempText);
priorityText = Homey.__(priorityText);
alwaysOnText = Homey.__(alwaysOnText);
Expand Down

0 comments on commit 68c2bf0

Please sign in to comment.