diff --git a/README-fr.md b/README-fr.md index 9ba715f..8c68c81 100644 --- a/README-fr.md +++ b/README-fr.md @@ -45,8 +45,6 @@ - [Et toujours de mieux en mieux avec l'AappDaemon NOTIFIER pour notifier les évènements](#et-toujours-de-mieux-en-mieux-avec-laappdaemon-notifier-pour-notifier-les-évènements) - [Les contributions sont les bienvenues !](#les-contributions-sont-les-bienvenues) -_Composant développé à l'aide de l'incroyable modèle de développement [[blueprint](https://github.com/custom-components/integration_blueprint)]._ - Ce composant personnalisé pour Home Assistant est une mise à niveau et est une réécriture complète du composant "Awesome thermostat" (voir [Github](https://github.com/dadge/awesome_thermostat)) avec l'ajout de fonctionnalités. # Quand l'utiliser et ne pas l'utiliser @@ -354,6 +352,22 @@ Dans l'ordre, il y a : 12. l'état de l'ouverture (si la gestion des ouvertures est configurée), 13. l'état du mouvement (si la gestion du mouvements est configurée) +Pour colorer les capteurs, ajouter ces lignes et personnalisez les au besoin, dans votre configuration.yaml : + +``` +frontend: + themes: + versatile_thermostat_theme: + state-binary_sensor-safety-on-color: "#FF0B0B" + state-binary_sensor-power-on-color: "#FF0B0B" + state-binary_sensor-window-on-color: "rgb(156, 39, 176)" + state-binary_sensor-motion-on-color: "rgb(156, 39, 176)" + state-binary_sensor-presence-on-color: "lightgreen" +``` +et choisissez le thème ```versatile_thermostat_theme``` dans la configuration du panel. Vous obtiendrez quelque-chose qui va ressembler à ça : + +![image](https://github.com/jmcollin78/versatile_thermostat/blob/main/images/colored-thermostat-sensors.png?raw=true) + # Services Cette implémentation personnalisée offre des services spécifiques pour faciliter l'intégration avec d'autres composants Home Assistant. diff --git a/README.md b/README.md index 532c12e..6ae472d 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,6 @@ - [And always better and better with the NOTIFIER daemon app to notify events](#and-always-better-and-better-with-the-notifier-daemon-app-to-notify-events) - [Contributions are welcome!](#contributions-are-welcome) -_Component developed by using the amazing development template [[blueprint](https://github.com/custom-components/integration_blueprint)]._ This custom component for Home Assistant is an upgrade and is a complete rewrite of the component "Awesome thermostat" (see [Github](https://github.com/dadge/awesome_thermostat)) with addition of features. @@ -340,6 +339,22 @@ In order, there are: 12. opening status (if opening management is configured), 13. motion status (if motion management is configured) +To color the sensors, add these lines and customize them as needed, in your configuration.yaml: + +``` +frontend: + themes: + versatile_thermostat_theme: + state-binary_sensor-safety-on-color: "#FF0B0B" + state-binary_sensor-power-on-color: "#FF0B0B" + state-binary_sensor-window-on-color: "rgb(156, 39, 176)" + state-binary_sensor-motion-on-color: "rgb(156, 39, 176)" + state-binary_sensor-presence-on-color: "lightgreen" +``` +and choose the ```versatile_thermostat_theme``` theme in the panel configuration. You will get something that will look like this: + +![image](https://github.com/jmcollin78/versatile_thermostat/blob/main/images/colored-thermostat-sensors.png?raw=true) + # Services This custom implementation offers some specific services to facilitate integration with others Home Assisstant components. diff --git a/images/colored-thermostat-sensors.png b/images/colored-thermostat-sensors.png new file mode 100644 index 0000000..5d3c479 Binary files /dev/null and b/images/colored-thermostat-sensors.png differ