Giter VIP home page Giter VIP logo

Comments (7)

ssieb avatar ssieb commented on August 20, 2024

It doesn't work like that any more. There's no text_sensor and no stored value. Just the on_tag: trigger which is triggered once per scan.

from esphome_components.

stmb-100 avatar stmb-100 commented on August 20, 2024

Hi
thanks that sounds good, then I'll try it once and integrate it into IOBroker. Has it already been tested with IOBroker?

danke das hรถrt sich gut an, dann werde ich es einmal versuchen und in IOBroker einbinden. Wurde es schon mit IOBroker getestet?

from esphome_components.

stmb-100 avatar stmb-100 commented on August 20, 2024

Hi
In the log I see the read RFID TAG. But it doesn't arrive in IOBroker ESPHOME Device. In the MQTT device I only see the message in the debug. How do I get the TAG in the ESPHomeDevice

ESPHOME Log
[17:25:53][V][wiegand.text_sensor:048]: received 26-bit value: 22efc4e
[17:25:53][D][wiegand.text_sensor:051]: received 26-bit tag: 1539623
[17:25:53][D][TEST:145]: received tag 1539623

MQTT Device debug
[0;36m[D][TEST:145]: received tag 1539623 [0m

from esphome_components.

ssieb avatar ssieb commented on August 20, 2024

I don't know what IOBroker is or how it works, but it sounds like it uses mqtt. At the place where your config sends the [17:25:53][D][TEST:145]: received tag 1539623 log message now, you can change that to send an mqtt message instead. Or use a template text_sensor and publish to that.

from esphome_components.

stmb-100 avatar stmb-100 commented on August 20, 2024

I tried it like this and it works for now

text_sensor:

  • platform: template
    name: "RFID Tag"
    id: rfid_tag

wiegand:

  • id: reader
    d0: D1
    d1: D2
    on_tag:
    • lambda: ESP_LOGD("TEST", "received tag %s", x.c_str());
    • text_sensor.template.publish:
      id: rfid_tag
      state: !lambda 'return x;'
      on_key:
    • lambda: ESP_LOGD("TEST", "received key %d", x);

from esphome_components.

stmb-100 avatar stmb-100 commented on August 20, 2024

Unfortunately, an update of the TAG (text_sensor) is sent every 60 seconds. The update_interval of the text_sensor cannot be deactivated and therefore IOBrocker gets the TAG sent every 60 seconds

from esphome_components.

ssieb avatar ssieb commented on August 20, 2024

I didn't think it would be sending anything if it hasn't changed. But you can disable it, update_interval: never. You should be using a direct mqtt publish anyway instead of a text_sensor.

from esphome_components.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.