alengwenus / esphome_components

External components for ESPHome
GNU General Public License v3.0
29 stars 9 forks source link

Measuring devices that have to be triggered with a certain character string #6

Open fitim7 opened 2 years ago

fitim7 commented 2 years ago

Hey,

how to use this for devices, that have to be triggered with a hex string? There are many devices, that "answer" just when you "ask" them. Is it possible to use this for these devices? Tasmota has this implemented (https://tasmota.github.io/docs/Smart-Meter-Interface/#meter-definition - see: "cmdTelegram") and i would love to see this for ESPHome.

Thank you!

terveer commented 8 months ago

Did you find a solution?

Theoretically you need an event or interval and write the hex data to the bus. If your trigger is like mine /?!\r\n. (for Elster 1440) then you could use something like this: uart.write: id: uart_bus data: [0x2F, 0x3F, 0x21, 0x0D, 0x0A]