Aohzan / ipx800v5

IPX800 V5 integration for Home-Assistant
Apache License 2.0
10 stars 0 forks source link

door opening sensor in NO #4

Closed Mickaelclercq closed 1 year ago

Mickaelclercq commented 1 year ago

hello could you help me I have magnetic door sensors normally closed on an x24d, it returns an erroneous value since they are No, can you explain to me how to change the value (when it is closed the window is closed and when it is off the window is open) thank you in advance you are doing a great job.

Aohzan commented 1 year ago

hi you can put an IO related with the X24D input with a NOT relation image and add the IO in the home-assistant configuration

or, you can create a template binary_sensor in Home-Assisant and get the state inverted from the ipx800 binary_sensor in the value_template, like I do for my garage door:

  - platform: template
    covers:
      porte_garage:
        device_class: garage
        friendly_name: "Porte Garage"
        unique_id: "template_cover_porte_garage"
        value_template: "{{ is_state('binary_sensor.etat_porte_garage', 'off') }}"
        open_cover:
          - service: switch.turn_on
            data:
              entity_id: switch.relais_porte_garage
...
Mickaelclercq commented 1 year ago

being a novice on home assistant can you explain to me how after having created an IO integrated them into home assistant thank you

Mickaelclercq commented 1 year ago

si vous parler francais c'est même plus simple car je parle francais et trés peu anlglais.

Aohzan commented 1 year ago

il y a un exemple dans le readme:

      - name: Mon Virtual IO
        component: switch
        ext_type: ipx
        type: io
        id: 65703