logo elektroda
logo elektroda
X
logo elektroda

Tasmot integration with Delta's PLC and Weintek's HMI - counter reset and MQTT messages

Przybyłek 1212 2
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 19207165
    Przybyłek
    Level 13  
    Hello
    I have a home automation system based on a Delta PLC and a Weintek HMI with MQTT. Everything connected works but want to expand the system a bit with some mobile elements, sockets, leds etc. Sometimes somewhere outdoors something needed sometimes inside a controlled socket would be useful for two days. I'm having a few problems with it, actually the problems themselves....
    I have uploaded tasmote, it works, it sends SIGNAL(Topic) to Weintek and I can read from it.
    Unfortunately in tasmote the current counter resets after power failure
    Same with the relay after restart it is on OFF(PowerOnState=3)

    Weintek doesn't read the messages from Tasmota, they are kind of meaningless.
    The subject is different than in the descriptions but this is not a problem(prefix tele) then we have in the subject SENSOR or STATE, but this is ok. Worse is the content of the message, it has another prefix, the ENERGY group. As a result, the message does not contain the data : value, but everything is in the group/table energy and unfortunately I do not know how to extract it from this.
  • ADVERTISEMENT
  • #2 19207772
    xury
    Automation specialist
    This is why home automation should have some sort of base where it can store data.
    In tasmot we have various commands that can change a lot in the behaviour of the device.
    e.g. the SetOpiton 0 command https://tasmota.github.io/docs/Commands/#setoption0 determines the behaviour after a power failure and its return.
    An additional parameter is PowerOnState https://tasmota.github.io/docs/PowerOnState/
    I don't know if there is also an option to keep the power counter after a reboot.
    Nevertheless, I recommend using a database system to control the automation.
    Przybyłek wrote:
    value only everything is as if in an energy group/table and unfortunately I don't know how to extract it from that.
    You can use rules to send MQTT data in your own format. You can use Node-red as an intermediary. There are many possibilities. Finally, you can use e.g. Home Assistant, Domoticz, Openhab, etc.
  • #3 19207920
    Przybyłek
    Level 13  
    xury wrote:
    This is why home automation should have some sort of base where it can store data.
    In tasmot we have various commands that can change a lot in the behaviour of the device.
    e.g. the SetOpiton 0 command https://tasmota.github.io/docs/Commands/#setoption0 determines the behaviour after a power failure and its return.
    An additional parameter is PowerOnState https://tasmota.github.io/docs/PowerOnState/
    I don't know if there is also an option to keep the power counter after a reboot.
    Nevertheless, I recommend using a database system to control the automation.
    Przybyłek wrote:
    value only everything is as if in an energy group/table and unfortunately I don't know how to extract it from that.
    You can use rules to send MQTT data in your own format. You can use Node-red as an intermediary. There are many possibilities. Finally, you can use e.g. Home Assistant, Domoticz, Openhab etc.
    .

    I have a database with it is the weintek panel, but so far I do not have communication with it, besides it would be nice if it worked independently. Unfortunately both options you write about are set correctly SetOption to 1 PoweronState to 3, unfortunately the relay is still off after a power failure.
    About this own format by rules I have not read.
ADVERTISEMENT