sarabanjina / mycomfort

Windhager myComfort custom component for Home Assistant
GNU General Public License v3.0
5 stars 0 forks source link

Excited to see this integration #1

Closed pabutterworth closed 2 years ago

pabutterworth commented 2 years ago

Hi,

I had all sorts of reliability issues with the Windhager mycomfort app, so much so I got a refund and they cancelled my access. I now have to manually check the boiler, but with your integration, I can now see some parameters in Home Assistant, thats awesome, and hopefully useful.

is it possible to get Homeassisstant to trigger events when it received errors from the boiler, like fuel low or cleaning required, to trigger an action?

pabutterworth commented 2 years ago

I know it's possible to change the alarm mechanism in the boiler so it triggers a message to a different server, but deciphering the messages or working out how to trigger them to do useful things is beyond my ability. I currently have set the boiler to send alarm messages to a specific port on my HA instance, and have managed to setup a node-red trigger to forward any alarm messages as push messages to my phone, but all I get is an indecipherable message, at least its enough to tell me the boiler wants attention, if I was able to trigger specific messages based on specific issues, that would be amazing/

sarabanjina commented 2 years ago

Hi,

I'm glad you got this integration working with your boiler!

You can get the boiler state with a template like this (in french) :

  - platform: template
    sensors:
      heater_fault:
        friendly_name: "Etat chaudière"
        value_template: "{%if states.sensor.heater_state.attributes['value'] == '-' %}OK{% else %}Problème{% endif %}"
        unit_of_measurement: "State"

You can get the information message from the boiler with a template like this :

  - platform: template
    sensors:
      heater_message:
        friendly_name: 'Information chaudière'
        value_template: >-
              {% set mapper =  {
                  '-' : 'OK',
                  '1' : 'Volet air primaire bloqué ou défectueux.',
                  '3' : 'Volet air secondaire bloqué ou défectueux.',
                  '5' : 'Elim. Cendres / Vibr. grille défect ou bloquée. Nettoyer le creuset.',
                  '6' : 'Moteur vis de transp. défectueux.',
                  '8' : 'Nettoyage surf. échan. défectueux Contrôler nettoyage surf. échan.',
                  '15' : '230V non disponible',
                  '16' : 'Ventilateur tirage asp. défectueux Nettoyer roue ventil. et caissson ventil.',
                  '17' : 'Ventilateur de tirage bloqué Nettoyer roue ventilateur.',
                  '18' : 'Ventilateur de tirage instable',
                  '37' : 'Clapet alim. Pellets ne s\'ouvre pas Contrôler clapet dans unité d\'alimentation.',
                  '40' : 'Ecluse défectueuse Ecluse de l\'alimentation en granulés ne s\'ouvre ou ne se ferme pas.',
                  '41' : 'Interrupteur réservoir pellets défectueux Vérifier l\'interrupteur du couvercle du réservoir à pelle',
                  '42' : 'Relai de la turbine d\'aspiration défectueuse Débrancher la prise d\'alimentation de la chaudière.',
                  '57' : 'Defáut du brûleur',
                  '62' : 'Clapet adm. déf. ou ne s\'ouvre pas.',
                  '71' : 'Interrup. sécu. urgence ouvert   Contrôler positions des interrupteurs de sécurité et d\'urgence.',
                  '76' : 'Sonde chaudière défectueuse Contrôler sonde chaudière et raccords.',
                  '78' : 'Sonde Thermocontrol  défectueuse Contrôler sonde Thermocontrol et raccords.',
                  '88' : 'Sonde O2 défectueuse Contrôler sonde O2 et raccordements.',
                  '89' : 'Sonde O2 chauffage défectueuse Contrôler sonde O2, transformateur et raccordements.',
                  '101' : 'TWE sonde défectueuse',
                  '103' : 'Sonde collecteur chaudières',
                  '104' : 'Sonde Tampon TPE H.S.',
                  '105' : 'Sonde Tampon TPA H.S.',
                  '107' : 'Ventilateur de tirage bloqué Nettoyer roue ventilateur.',
                  '114' : 'Sonde de séparation / rés. tampon défect Contrôler et  raccords du module en cascade.',
                  '115' : 'ZSK sonde défectueuse',
                  '128' : 'Pas formation flamme en mode Régul Nettoyer brûl. chaud. ',
                  '129' : 'Temps de fin de combustion dépassé',
                  '130' : 'Température chambre combustion trop basse',
                  '133' : 'Température sécurité désactivation Contrôler instal. et pression de service.',
                  '135' : 'Surchauffe au tube de vis',
                  '144' : 'Dispositif de sécurité interrompu Contrôler les dispositifs de sécurité.',
                  '155' : 'Sécurité manque d\'eau actionnée Vérifier la pression de l\'installation.',
                  '156' : 'Pas de dépression dans la chambre de combust.  ou défaut capteur.',
                  '171' : 'Tps préchauffage max. dépassé Nettoyer le creuset.',
                  '186' : 'Pas de communication au MES Module',
                  '187' : 'Pas de communication avec automate   Contrôler connexion automate et raccords. ',
                  '188' : 'Internal error occurred',
                  '189' : 'Pas de communication au circuit supplémentaire Contrôler connexion circ. sup.',
                  '191' : 'Defaut génerateur Gaz',
                  '194' : 'Pas de communication avec la chaudière',
                  '195' : 'Chambre comb. ouverte pendant marche',
                  '206' : 'Défaut de surveillance de la vis de transport',
                  '208' : 'Nettoyage surf. échan. défectueux Contrôler nettoyage surf. échan.',
                  '226' : 'Pas de flamme à l\'allumage Echec à l\'allumage',
                  '238' : 'Alimentation n\'aspire pas de pellets Contrôl. reste pellets dans silo et tuyau alimentation.',
                  '239' : 'Commutation de sonde défectueux Contrôler unité de commutation.',
                  '240' : 'Verrouillage alim. Pellets ouvert Verrouillage alim. Pellets ne ferme pas',
                  '241' : 'Couvercle réservoir ouvert Couvercle réservoir fermé',
                  '266' : 'Contacteur porte de remplis. sans contact Ne plus remplir.',
                  '268' : 'Interrupteur porte de revêtement défectueux',
                  '281' : 'Sonde temp. fumées défectueuse Contrôler sonde temp. fumées et raccords alimentation.',
                  '296' : 'Sonde Départ H.S.',
                  '297' : 'Consigne non calculée',
                  '299' : 'Sonde AT H.S.',
                  '300' : 'Sonde E.C.S. H.S.',
                  '320' : 'Mode secours nettoyage',
                  '321' : 'Mode secours nettoyage géneral',
                  '322' : 'Vider la boite à cendres, nettoyer brûleur, chambre de combustion.',
                  '324' : 'L\'entretien fait parti des cond. de garantie de la chaudière.',
                  '330' : 'Température chambre combustion trop basse Nettoyage général éffectué selon la notice.',
                  '345' : 'Ouvrir porte Brûleur bloqué.',
                  '356' : 'Pression chambre de combustion instable',
                  '372' : 'Valeurs de préchauffage Température chambre de combustion trop basse lors du préchauffage. ',
                  '373' : 'Rendement du préchauffage.',
                  '374' : 'Préchauffage ',
                  '375' : 'Préchauff. pour temp. chaudière trop élevée',
                  '381' : 'Compart. pellets vide Programme tps. bloque alim. Modifier tps. libération ds Mode Utilisateur.',
                  '382' : 'Contrôler clapet et interrupt.dans unité alimentation.',
                  '387' : 'Erreur de comunication avec automate de chauffage Appuyer la touche reset pendant 5 sec minimum.',
                  '390' : 'Régime secours! Nettoyer brûl. Chaud.',
                  '393' : 'Message erreur E1',
                  '395' : 'Porte foyer / décendrage ouverte',
                  '396' : 'Fermer porte de revêtement.',
                  '438' : 'Une zone de stockage pellets est vide Contrôler stockage pellets',
                  '496' : 'Antigel d\'installat actif',
                  '499' : 'Antigel d\'ambiance actif',
                  '500' : 'Antigel eau chaude actif',
                  '504' : 'TP/TW  Antigel actif',
                  '520' : 'Nettoyage Vider le cendrier, nettoyer les surffaces d\'échanges. Nettoyer Thermo-sonde',
                  '521' : 'Nettoyage général Nettoyage général éffectué selon la notice.',
                  '522' : 'Nettoyage Vider la boite à cendres, nettoyer brûleur, chambre de combustion.',
                  '523' : 'Nettoyage général Nettoyage général éffectué selon la notice.',
                  '524' : 'Entretien L\'entretien fait parti des cond. de garantie de la chaudière.',
                  '581' : 'Compart. pellets presque vide. Ajouter pellets.',
                  '582' : 'Compart. pellets vide. Ajouter pellets. Brûleur bloqué.',
                  '590' : 'Netoyer chaudière et brûleur. Confirmer nettoyage.',
                  '591' : 'Attention à l\'ouverture de porte de remplis Laisser aérer porte de remplissage mini 15 sec.',
                  '595' : 'Ouvrir porte',
                  'unknown' : 'La chaudière ne répond pas.' } %}
              {% set state =  states.sensor.heater_state.attributes["value"] %}
              {{ mapper[state] if state in mapper else 'Erreur inconnue' }}

You can get the list of errors at this url on your boiler (RC7030) : http://x.x.x.x/res/xml/ErrorTexte_en.xml.

And finally, you can trigger an alert in HA on your mobile phone (in alerts.yaml) :

  heater:
    name: Chaudière en panne
    entity_id: sensor.heater_fault
    state: 'Problème'
    repeat: 30
    can_acknowledge: true
    skip_first: true
    title: "Chaudière en panne"
    message: "{{ states.sensor.heater_message.state }}"
    done_message: Chaudière en service
    notifiers:
      - mobile_app_nicolas

Hope it helps

pabutterworth commented 2 years ago

Thanks, but I'm a bit confused about how to use these templates.

If I add them to my configuration.yaml I get the following errors:

Integration error: sensors - Integration 'sensors' not found. Integration error: -platform - Integration '-platform' not found.

I haven't looked at the alerts yet, one step at a time.

Any suggestions?

Thanks Paul

On Sat, 8 Jan 2022 at 17:42, sarabanjina @.***> wrote:

Hi,

I'm glad you got this integration working with your boiler!

You can get the boiler state with a template like this (in french) :

  • platform: template

    sensors:

    heater_fault:

    friendly_name: "Etat chaudière"
    
    value_template: "{%if states.sensor.heater_state.attributes['value'] == '-' %}OK{% else %}Problème{% endif %}"
    
    unit_of_measurement: "State"

You can get the information message from the boiler with a template like this :

  • platform: template

    sensors:

    heater_message:

    friendly_name: 'Information chaudière'
    
    value_template: >-
    
          {% set mapper =  {
    
              '-' : 'OK',
    
              '1' : 'Volet air primaire bloqué ou défectueux.',
    
              '3' : 'Volet air secondaire bloqué ou défectueux.',
    
              '5' : 'Elim. Cendres / Vibr. grille défect ou bloquée. Nettoyer le creuset.',
    
              '6' : 'Moteur vis de transp. défectueux.',
    
              '8' : 'Nettoyage surf. échan. défectueux Contrôler nettoyage surf. échan.',
    
              '15' : '230V non disponible',
    
              '16' : 'Ventilateur tirage asp. défectueux Nettoyer roue ventil. et caissson ventil.',
    
              '17' : 'Ventilateur de tirage bloqué Nettoyer roue ventilateur.',
    
              '18' : 'Ventilateur de tirage instable',
    
              '37' : 'Clapet alim. Pellets ne s\'ouvre pas Contrôler clapet dans unité d\'alimentation.',
    
              '40' : 'Ecluse défectueuse Ecluse de l\'alimentation en granulés ne s\'ouvre ou ne se ferme pas.',
    
              '41' : 'Interrupteur réservoir pellets défectueux Vérifier l\'interrupteur du couvercle du réservoir à pelle',
    
              '42' : 'Relai de la turbine d\'aspiration défectueuse Débrancher la prise d\'alimentation de la chaudière.',
    
              '57' : 'Defáut du brûleur',
    
              '62' : 'Clapet adm. déf. ou ne s\'ouvre pas.',
    
              '71' : 'Interrup. sécu. urgence ouvert   Contrôler positions des interrupteurs de sécurité et d\'urgence.',
    
              '76' : 'Sonde chaudière défectueuse Contrôler sonde chaudière et raccords.',
    
              '78' : 'Sonde Thermocontrol  défectueuse Contrôler sonde Thermocontrol et raccords.',
    
              '88' : 'Sonde O2 défectueuse Contrôler sonde O2 et raccordements.',
    
              '89' : 'Sonde O2 chauffage défectueuse Contrôler sonde O2, transformateur et raccordements.',
    
              '101' : 'TWE sonde défectueuse',
    
              '103' : 'Sonde collecteur chaudières',
    
              '104' : 'Sonde Tampon TPE H.S.',
    
              '105' : 'Sonde Tampon TPA H.S.',
    
              '107' : 'Ventilateur de tirage bloqué Nettoyer roue ventilateur.',
    
              '114' : 'Sonde de séparation / rés. tampon défect Contrôler et  raccords du module en cascade.',
    
              '115' : 'ZSK sonde défectueuse',
    
              '128' : 'Pas formation flamme en mode Régul Nettoyer brûl. chaud. ',
    
              '129' : 'Temps de fin de combustion dépassé',
    
              '130' : 'Température chambre combustion trop basse',
    
              '133' : 'Température sécurité désactivation Contrôler instal. et pression de service.',
    
              '135' : 'Surchauffe au tube de vis',
    
              '144' : 'Dispositif de sécurité interrompu Contrôler les dispositifs de sécurité.',
    
              '155' : 'Sécurité manque d\'eau actionnée Vérifier la pression de l\'installation.',
    
              '156' : 'Pas de dépression dans la chambre de combust.  ou défaut capteur.',
    
              '171' : 'Tps préchauffage max. dépassé Nettoyer le creuset.',
    
              '186' : 'Pas de communication au MES Module',
    
              '187' : 'Pas de communication avec automate   Contrôler connexion automate et raccords. ',
    
              '188' : 'Internal error occurred',
    
              '189' : 'Pas de communication au circuit supplémentaire Contrôler connexion circ. sup.',
    
              '191' : 'Defaut génerateur Gaz',
    
              '194' : 'Pas de communication avec la chaudière',
    
              '195' : 'Chambre comb. ouverte pendant marche',
    
              '206' : 'Défaut de surveillance de la vis de transport',
    
              '208' : 'Nettoyage surf. échan. défectueux Contrôler nettoyage surf. échan.',
    
              '226' : 'Pas de flamme à l\'allumage Echec à l\'allumage',
    
              '238' : 'Alimentation n\'aspire pas de pellets Contrôl. reste pellets dans silo et tuyau alimentation.',
    
              '239' : 'Commutation de sonde défectueux Contrôler unité de commutation.',
    
              '240' : 'Verrouillage alim. Pellets ouvert Verrouillage alim. Pellets ne ferme pas',
    
              '241' : 'Couvercle réservoir ouvert Couvercle réservoir fermé',
    
              '266' : 'Contacteur porte de remplis. sans contact Ne plus remplir.',
    
              '268' : 'Interrupteur porte de revêtement défectueux',
    
              '281' : 'Sonde temp. fumées défectueuse Contrôler sonde temp. fumées et raccords alimentation.',
    
              '296' : 'Sonde Départ H.S.',
    
              '297' : 'Consigne non calculée',
    
              '299' : 'Sonde AT H.S.',
    
              '300' : 'Sonde E.C.S. H.S.',
    
              '320' : 'Mode secours nettoyage',
    
              '321' : 'Mode secours nettoyage géneral',
    
              '322' : 'Vider la boite à cendres, nettoyer brûleur, chambre de combustion.',
    
              '324' : 'L\'entretien fait parti des cond. de garantie de la chaudière.',
    
              '330' : 'Température chambre combustion trop basse Nettoyage général éffectué selon la notice.',
    
              '345' : 'Ouvrir porte Brûleur bloqué.',
    
              '356' : 'Pression chambre de combustion instable',
    
              '372' : 'Valeurs de préchauffage Température chambre de combustion trop basse lors du préchauffage. ',
    
              '373' : 'Rendement du préchauffage.',
    
              '374' : 'Préchauffage ',
    
              '375' : 'Préchauff. pour temp. chaudière trop élevée',
    
              '381' : 'Compart. pellets vide Programme tps. bloque alim. Modifier tps. libération ds Mode Utilisateur.',
    
              '382' : 'Contrôler clapet et interrupt.dans unité alimentation.',
    
              '387' : 'Erreur de comunication avec automate de chauffage Appuyer la touche reset pendant 5 sec minimum.',
    
              '390' : 'Régime secours! Nettoyer brûl. Chaud.',
    
              '393' : 'Message erreur E1',
    
              '395' : 'Porte foyer / décendrage ouverte',
    
              '396' : 'Fermer porte de revêtement.',
    
              '438' : 'Une zone de stockage pellets est vide Contrôler stockage pellets',
    
              '496' : 'Antigel d\'installat actif',
    
              '499' : 'Antigel d\'ambiance actif',
    
              '500' : 'Antigel eau chaude actif',
    
              '504' : 'TP/TW  Antigel actif',
    
              '520' : 'Nettoyage Vider le cendrier, nettoyer les surffaces d\'échanges. Nettoyer Thermo-sonde',
    
              '521' : 'Nettoyage général Nettoyage général éffectué selon la notice.',
    
              '522' : 'Nettoyage Vider la boite à cendres, nettoyer brûleur, chambre de combustion.',
    
              '523' : 'Nettoyage général Nettoyage général éffectué selon la notice.',
    
              '524' : 'Entretien L\'entretien fait parti des cond. de garantie de la chaudière.',
    
              '581' : 'Compart. pellets presque vide. Ajouter pellets.',
    
              '582' : 'Compart. pellets vide. Ajouter pellets. Brûleur bloqué.',
    
              '590' : 'Netoyer chaudière et brûleur. Confirmer nettoyage.',
    
              '591' : 'Attention à l\'ouverture de porte de remplis Laisser aérer porte de remplissage mini 15 sec.',
    
              '595' : 'Ouvrir porte',
    
              'unknown' : 'La chaudière ne répond pas.' } %}
    
          {% set state =  states.sensor.heater_state.attributes["value"] %}
    
          {{ mapper[state] if state in mapper else 'Erreur inconnue' }}

You can get the list of errors at this url on your boiler (RC7030) : http://x.x.x.x/res/xml/ErrorTexte_en.xml.

And finally, you can trigger an alert in HA on your mobile phone (in alerts.yaml) :

heater:

name: Chaudière en panne

entity_id: sensor.heater_fault

state: 'Problème'

repeat: 30

can_acknowledge: true

skip_first: true

title: "Chaudière en panne"

message: "{{ states.sensor.heater_message.state }}"

done_message: Chaudière en service

notifiers:

  - mobile_app_nicolas

Hope it helps

— Reply to this email directly, view it on GitHub https://github.com/sarabanjina/mycomfort/issues/1#issuecomment-1008075864, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD737V2QBTQO7AU5B3PDXCTUVBZRLANCNFSM5LQXETUQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

-- Paul Butterworth +44 7768 252250

pabutterworth commented 2 years ago

Also, I just noticed this error, any tips?

Logger: homeassistant.helpers.entity Source: custom_components/mycomfort/mycomfortclient/myComfortGateway.py:155 Integration: myComfort Windhager integration (documentation, issues) First occurred: 8 January 2022, 15:13:26 (5244 occurrences) Last logged: 10:54:30

Update for sensor.mycomfort_biowin_2_buffer_temperature fails Update for sensor.mycomfort_biowin_2_boiler_operating_time_maintenance fails Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 487, in async_update_ha_state await self.async_device_update() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 691, in async_device_update raise exc File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run result = self.fn(*self.args, **self.kwargs) File "/config/custom_components/mycomfort/sensor.py", line 273, in update self._state = self._sensorCONF_GETTER File "/config/custom_components/mycomfort/sensor.py", line 70, in CONF_GETTER: lambda api: api.getBufferTemperature(), File "/config/custom_components/mycomfort/mycomfortclient/myComfortBoiler.py", line 39, in getBufferTemperature return self._gateway.value("/1/" + self._id + "/0/" + self._gateway.oid("Switch/buffer temperature") + "/0") File "/config/custom_components/mycomfort/mycomfortclient/myComfortGateway.py", line 155, in value if 'enum' in datapoint or (splittedOid[4] == "2" and splittedOid[5] == "9"): TypeError: argument of type 'NoneType' is not iterable

sarabanjina commented 2 years ago

Hi,

For configuration, the examples are from a splitted configuration : Splitting up the configuration

You need to include sensors template in your configuration.yaml : sensor template: !include template-sensors.yaml

Nicolas

sarabanjina commented 2 years ago

Hi,

For your error, it seems that you your gateway is returning a strange value for oid "1/60/0/0/96/0". Can you check the returned value of this url : http://x.x.x.x/api/1.0/datapoint/1/60/0/0/96/0 Nicolas

sarabanjina commented 2 years ago

You can also activate debug in configuration.yaml like this :

logger:
  default: warn # default logging level
  logs:
    custom_components.mycomfort: debug
pabutterworth commented 2 years ago

Thanks, I get this response.

{ "code": 409, "message": "Conflict", "reason": "Target returns invalid Identifier: 63-127" }

Just looking at your other responses.

regads Paul

On Tue, 11 Jan 2022 at 08:38, sarabanjina @.***> wrote:

Hi,

For your error, it seems that you your gateway is returning a strange value for oid "1/60/0/0/96/0". Can you check the returned value of this url : http://x.x.x.x/api/1.0/datapoint/1/60/0/0/96/0 Nicolas

— Reply to this email directly, view it on GitHub https://github.com/sarabanjina/mycomfort/issues/1#issuecomment-1009714960, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD737V6EBDGGW5GIPUDDERLUVPUBHANCNFSM5LQXETUQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

-- Paul Butterworth +44 7768 252250

sarabanjina commented 2 years ago

Interesting... It means you have not this sensor in your gateway... I just pushed a patch in mycomfortclient which should prevent this error.

pabutterworth commented 2 years ago

Sorry to ask again, but I'm struggling understanding how to install this.

I put the line below in my configuration.yaml

sensor template: !include template-sensors.yaml

and put the platform template stuff in template-sensors.yaml?

I tried that but I cant get it to accept it, not sure what i'm doing wrong. I'll read more tonight.

Thanks

On Tue, 11 Jan 2022 at 16:28, Paul Butterworth @.***> wrote:

Sorry to ask again, but I'm struggling understanding how to install this.

I put the line below in my configuration.yaml

sensor template: !include template-sensors.yaml

and put the

On Tue, 11 Jan 2022 at 12:50, sarabanjina @.***> wrote:

Interesting... It means you have not this sensor in your gateway... I just pushed a patch in mycomfortclient https://github.com/sarabanjina/mycomfortclient which should prevent this error.

— Reply to this email directly, view it on GitHub https://github.com/sarabanjina/mycomfort/issues/1#issuecomment-1009933767, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD737V3KA4QNLDD5G6IJRWLUVQRSBANCNFSM5LQXETUQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

-- Paul Butterworth +44 7768 252250

-- Paul Butterworth +44 7768 252250

sarabanjina commented 2 years ago

Yes, it should work like that : did you keep the 2 spaces before "- platform"? Indentation is important in config files as this is Python code. What is the error message in Home Assistant?

pabutterworth commented 2 years ago

I think you may be right, I get errors if I cut & paste.

Is it possible to attach your template-sensors.yaml, I wonder if cut& paste is mucking up the spacing.

Thanks Paul

On Tue, 11 Jan 2022 at 16:45, sarabanjina @.***> wrote:

Yes, it should work like that : did you keep the 2 spaces before "- platform"? Indentation is important in config files as this is Python code. What is the error message in Home Assistant?

— Reply to this email directly, view it on GitHub https://github.com/sarabanjina/mycomfort/issues/1#issuecomment-1010155463, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD737V6KAATFX7VAHE3D6NDUVRNCNANCNFSM5LQXETUQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

-- Paul Butterworth +44 7768 252250

pabutterworth commented 2 years ago

And can I put both platform:template sections in one yaml file to be included?

I should learn how to do this, I was a 'C' programmer 25 years ago!

sarabanjina commented 2 years ago

Here is my conf file (renamed to txt for Github) : just rename it to yaml template-sensors.txt

pabutterworth commented 2 years ago

Thank you so much, that works for me. I now need to look at the notifier and how to make the best use of the info,

rgards Paul

On Tue, 11 Jan 2022 at 16:57, sarabanjina @.***> wrote:

Here is my conf file (renamed to txt for Github) : just rename it to yaml template-sensors.txt https://github.com/sarabanjina/mycomfort/files/7848506/template-sensors.txt

— Reply to this email directly, view it on GitHub https://github.com/sarabanjina/mycomfort/issues/1#issuecomment-1010166695, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD737V74SAXQZAZN562XZQ3UVROQZANCNFSM5LQXETUQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

-- Paul Butterworth +44 7768 252250

pabutterworth commented 2 years ago

In case anyone else wants to use it with messages in English:

On Tue, 11 Jan 2022 at 17:43, Paul Butterworth @.***> wrote:

Thank you so much, that works for me. I now need to look at the notifier and how to make the best use of the info,

rgards Paul

On Tue, 11 Jan 2022 at 16:57, sarabanjina @.***> wrote:

Here is my conf file (renamed to txt for Github) : just rename it to yaml template-sensors.txt https://github.com/sarabanjina/mycomfort/files/7848506/template-sensors.txt

— Reply to this email directly, view it on GitHub https://github.com/sarabanjina/mycomfort/issues/1#issuecomment-1010166695, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD737V74SAXQZAZN562XZQ3UVROQZANCNFSM5LQXETUQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

-- Paul Butterworth +44 7768 252250

-- Paul Butterworth +44 7768 252250

sarabanjina commented 2 years ago

Glad you got it working! You can also get error messages in German here : http://x.x.x.x/res/xml/ErrorTexte_de.xml.