fmartinou / tydom2mqtt

Deltadore Tydom to MQTT Bridge
https://fmartinou.github.io/tydom2mqtt/
MIT License
86 stars 49 forks source link

Light state feedback in HA #75

Open SylvainDx opened 1 year ago

SylvainDx commented 1 year ago

Hello,

I recently deployed on Docker HA, Mosquitto and Tydom2MQTT. I've go lights and shutters manage thru Tydom v1 box.

On HA, shutters works fine, I have position updated after every moove whereever the order came from. But for lights status in HA is only updated when the order come from HA.

I check MQTT Explorer, the level is correctly updated the HA Sensor for the light sensor.leveltydom%Name% is correct too

BlacKTM1190 commented 1 year ago

Hello I can't tell for HA, I only use Jeedom :wink: But the light level in jMQTT is found in : light/tydom/{id}/current_level Is your HA sensor connected to this topic ?

Dfendersystem commented 1 year ago

Bonjour,

J'ai récemment déployé sur Docker HA, Mosquitto et Tydom2MQTT. J'ai géré les lumières et les volets via la boîte Tydom v1.

Sur HA, les volets fonctionnent bien, j'ai la position mise à jour après chaque mouvement, d'où vient la commande. Mais pour les lumières, l'état de HA n'est mis à jour que lorsque la commande provient de HA.

Je vérifie MQTT Explorer, le niveau est correctement mis à jour le capteur HA pour le capteur de lumière.leveltydom%Name% est correct aussi

Hello, I have the same problem !

Coldness00 commented 1 year ago

Hello, same issue here.

The covers are working fine but not the lights.

However what I noticed, if you switch on a light (physically at 50% brightness) then turn it on in HA it sees the correct brightness value. At last, if I shutoff the light physically, then HA reports it as ''on'' but with a brightness at 0.

I tried working around instead of shutoff select brightness at 0% but it didn't work.

Coldness00 commented 1 year ago

Hello guyz,

I found a work around, see below my yaml automation for 1light. Simple and effective. Only default is the presence of 2-5sec lag of before Hass sees it.

alias: Tydom Salon
description: ""
trigger:
  - platform: state
    entity_id:
      - light.eclairage_salon
    attribute: level
condition: []
action:
  - choose:
      - conditions:
          - condition: numeric_state
            entity_id: light.eclairage_salon
            attribute: level
            below: 1
        sequence:
          - type: turn_off
            device_id: 457a25e2d365605141614a5d1466daab
            entity_id: light.eclairage_salon
            domain: light
      - conditions:
          - condition: numeric_state
            entity_id: light.eclairage_salon
            above: 0
            attribute: level
        sequence:
          - type: turn_on
            device_id: 457a25e2d365605141614a5d1466daab
            entity_id: light.eclairage_salon
            domain: light
mode: single
GaGkL commented 9 months ago

Bonjour, J'ai exactement le même problème. L'état des modules Tyxia ne remontent pas dans Home Assistant lorsqu'ils sont commandés par les interrupteurs physique. Pas de problème lorsqu'ils sont actionnés à partir de HA. L'information est pourtant remontée du broket à HA par

Il est vrai qu'une solution de contournement est possible avec les automatisations mais ce n'est pas facilement maintenable dans le temps

J'en profite pour te remercier sur la qualité de tydom2mqtt qui me permet de gérer parfaitement mes volets. Merci par avance