michelde / telenot

Telenot Adapter
Apache License 2.0
6 stars 5 forks source link

How to configure? #5

Closed cd-tronic closed 3 years ago

cd-tronic commented 3 years ago

Hi @michelde

sorry for contacting you again. Can you please explain a bit more how to configure everything?

image image

this is what my C400 config looks like.

I think i need to edit the config/config.js file? image

what value does "position" stand for?

The communication to the telnet seem to work because the RX/TX counter of my tcp/serial bridge counts up all the time. But it looks like I'm not getting any MQTT messages at the moment

Regards,

michelde commented 3 years ago

Hi,

As I'm not sure if the settings are the same for every Telenot device you need to figure out the position for your relevant "things". This can be done by:

You can also check if this works for you (I adjusted to your config):

MELDEBEREICHE: {
      name: 'MELDEBEREICHE',
      positions: [
        { position: 602, name: 'Tür 1 offen', topic: 'tuer1_offen', inverted: true },
      ],
    },
MELDEGRUPPEN: {
      name: 'MELDEGRUPPEN',
      positions: [
        { position: 1080, name: 'BWM1 - Werkstatt', topic: 'bwm1_werkstatt, inverted: true },
        { position: 1125, name: 'Tor offen', topic: 'tor_offen', inverted: true },
      ],
    },
cd-tronic commented 3 years ago

Hi @michelde,

thank you very much!