Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an inversion button for "fil pilote" #124

Closed
apas2 opened this issue Oct 15, 2023 · 15 comments
Closed

Add an inversion button for "fil pilote" #124

apas2 opened this issue Oct 15, 2023 · 15 comments
Labels
developed When development is done and tested enhancement New feature or request P1 Priority 1

Comments

@apas2
Copy link

apas2 commented Oct 15, 2023

hello
fine thermostat
but ( i think) some presets are missing: sleep , away (hors gel)
could you add these ?
Again, missing (in France) : in your switchs is it possible to add an item to set 'direct' or 'pilote'. so in pilote the output is inverted...
thanks for your work

@jmcollin78
Copy link
Owner

Hello @apas2 ,

Away is available through the presence feature. See documentation for this.
Sleep is not usefull so it is not added to keep it simple. I use Comfort for sleep room and Eco for other room when nobody is there.

in your switchs is it possible to add an item to set 'direct' or 'pilote'. so in pilote the output is inverted...

I don't understand pilote ? You mean with a pilot wired ? if yes, there is no need to invert the output. Some others users have it working without this. More explanations is needed for your case.

@jmcollin78 jmcollin78 added the question Further information is requested label Oct 15, 2023
@apas2
Copy link
Author

apas2 commented Oct 16, 2023 via email

@jmcollin78
Copy link
Owner

Some others use VTherm with a pilot wired (fil pilote). I don't known how they manage to get the "inversion" for pilot.
If you are french may be you can ask here the question: https://forum.hacf.fr/t/nouveau-thermostat-type-proportionnel-avec-gestion-des-presets-portes-et-fenetres-detection-de-mouvement-gestion-de-presence-et-surconsommation/19160

I'm sure you will have an answer.

@apas2
Copy link
Author

apas2 commented Oct 18, 2023 via email

@jmcollin78
Copy link
Owner

I close this question. Don't hesitate to reopen if you think it is relevant.

@jmcollin78
Copy link
Owner

Finally, the need of inversion seems legit. I reopen this.

You can add a virtual switch waiting for the feature to be implemented:

- platform: template
    switches:
      convecteur_salon:
        friendly_name: Convecteur Salon Inv
        value_template: "{{ is_state('switch.convecteur_salon', 'off') }}"
        turn_on:
          service: switch.turn_off
          data:
            entity_id: switch.convecteur_salon
        turn_off:
          service: switch.turn_on
          data:
            entity_id: switch.convecteur_cuisine
        icon_template: "{% if is_state('switch.convecteur_salon', 'on') %}mdi:radiator-disabled{% else %}mdi:radiator{% endif %}"

@jmcollin78 jmcollin78 reopened this Oct 30, 2023
@jmcollin78 jmcollin78 added enhancement New feature or request P1 Priority 1 and removed question Further information is requested labels Oct 30, 2023
@jmcollin78 jmcollin78 changed the title missing 'sleep' & 'pilote' Add an inversion button for "fil pilote" Oct 30, 2023
@adi90x
Copy link
Contributor

adi90x commented Oct 30, 2023

Finally, the need of inversion seems legit. I reopen this.

You can add a virtual switch waiting for the feature to be implemented:

- platform: template
    switches:
      convecteur_salon:
        friendly_name: Convecteur Salon Inv
        value_template: "{{ is_state('switch.convecteur_salon', 'off') }}"
        turn_on:
          service: switch.turn_off
          data:
            entity_id: switch.convecteur_salon
        turn_off:
          service: switch.turn_on
          data:
            entity_id: switch.convecteur_cuisine
        icon_template: "{% if is_state('switch.convecteur_salon', 'on') %}mdi:radiator-disabled{% else %}mdi:radiator{% endif %}"

Using that since more than a year it work flawlessly ! And make more sense to control an entity that represent the real state of the object, instead of the state of the current applied :)

@apas2
Copy link
Author

apas2 commented Oct 31, 2023 via email

@jmcollin78 jmcollin78 added the developed When development is done and tested label Nov 1, 2023
@nono2356
Copy link

nono2356 commented Nov 1, 2023

Oh yeah !! I'm going to test it ASAP. Really thanks !

@jmcollin78
Copy link
Owner

@jmcollin78
Copy link
Owner

Oh yeah !! I'm going to test it ASAP. Really thanks !

Feedback will be appreciated because i'm not able to test with my home configuration

@lilp69
Copy link

lilp69 commented Feb 21, 2024

Finally, the need of inversion seems legit. I reopen this.
You can add a virtual switch waiting for the feature to be implemented:

- platform: template
    switches:
      convecteur_salon:
        friendly_name: Convecteur Salon Inv
        value_template: "{{ is_state('switch.convecteur_salon', 'off') }}"
        turn_on:
          service: switch.turn_off
          data:
            entity_id: switch.convecteur_salon
        turn_off:
          service: switch.turn_on
          data:
            entity_id: switch.convecteur_cuisine
        icon_template: "{% if is_state('switch.convecteur_salon', 'on') %}mdi:radiator-disabled{% else %}mdi:radiator{% endif %}"

Using that since more than a year it work flawlessly ! And make more sense to control an entity that represent the real state of the object, instead of the state of the current applied :)

Hi,
I need to use this config, I think cause I also have wire pilot.
How to create a virtual switch and where add the block code ?
Thanks.

@jmcollin78
Copy link
Owner

Hello @lilp69 ,

Put that code into your template.yaml file if you have one or create one and reference it from configuration.yaml.

Search Templating documentation if that is still not clear.

@lilp69
Copy link

lilp69 commented Feb 22, 2024

With this switches.yaml file :
<

  • platform: template
    switches:
    convecteur_salon:
    friendly_name: Convecteur Salon Inv
    value_template: "{{ is_state('switch.convecteur_salon', 'off') }}"
    turn_on:
    service: switch.turn_off
    data:
    entity_id: switch.convecteur_salon
    turn_off:
    service: switch.turn_on
    data:
    entity_id: switch.convecteur_cuisine
    icon_template: "{% if is_state('switch.convecteur_salon', 'on') %}mdi:radiator-disabled{% else %}mdi:radiator{% endif %}"

I've this message : Invalid config for 'template' at switches.yaml, line 1: 'platform' is an invalid option for 'template', check: platform Invalid config for 'template' at switches.yaml, line 2: 'switches' is an invalid option for 'template', check: switches

Error from configuration.yaml, need to add : switch: !include switches.yaml

@jmcollin78
Copy link
Owner

jmcollin78 commented Feb 22, 2024

You should format the code with the <> button. Else it is impossible to see if there is an indentation error or something else.

I think I already answer in the forum.hacs. Please don't duplicate the question.

And here, you are on a closed issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
developed When development is done and tested enhancement New feature or request P1 Priority 1
Projects
None yet
Development

No branches or pull requests

5 participants