Skip to content

General Discussion

1.6k Topics 14.2k Posts

A place to talk about whateeeever you want

  • MQTT Protocol Question

    10
    0 Votes
    10 Posts
    2k Views
    G
    @wimd Thanks. Why would I want a non presented node? I am guessing a Mysensors MQTT gateway will let me send and receive MQTT messages direct to/from the Mysensors network without having to rely on Domoticz?
  • Code explanation

    4
    1 Votes
    4 Posts
    1k Views
    R
    @bjacobse Ok, now i understand, thank you for the link and for a quick reply. Case closed:grinning:
  • Looking for a specific pressure sensor

    1
    0 Votes
    1 Posts
    485 Views
    No one has replied
  • [SOLVED] Strange behavior on MQTT Gateway Reset

    13
    0 Votes
    13 Posts
    3k Views
    electrikE
    @xefil thank you, happy new year!
  • Best way to send nodeDistance and parentNode

    7
    0 Votes
    7 Posts
    2k Views
    X
    @mfalkvidd said in Best way to send nodeDistance and parentNode: @xefil I've never seen anyone reuse a child ID, and I think it would confuse most controllers. Just look at the presentation call: first the sketch would present the child as type X, then the sketch would present the same child as type Y. Will the controller use the first, the second, both or none of the presentations? But you may be right - maybe controllers can handle multiple data types per child id. Well @mfalkvidd maybe it's me that I'm making confusion. AFAYK, in case of HomeAssistant, it has an auto-discovery system which works, even if I don't like the naming convention it uses. BTW, using the above example, subscribing to MQTT server, I can get the values like follow: api doc: MY_MQTT_PUBLISH_TOPIC_PREFIX/FROM-NODE-ID/SENSOR-ID/CMD-TYPE/ACK-FLAG/SUB-TYPE example message published on topic prefix mygateway1-out from node 28, on V_VAR1, which has id 24, becomes: mygateway1-out/28/100/1/0/24 The same way, message published on topic prefix mygateway1-out from node 28, on V_VAR2, which has id 25, becomes: mygateway1-out/28/100/1/0/25 This gives me the ability to subscribe on it and check for changes, like the logs shows me: 2018-12-31 08:37:09 DEBUG (MainThread) [homeassistant.components.mqtt] Received message on mygateway1-out/28/100/1/0/24: b'0.0' 2018-12-31 08:51:09 DEBUG (MainThread) [homeassistant.components.mqtt] Received message on mygateway1-out/28/100/1/0/25: b'1.0' Looking deeper on what the controller recognize it during the presentation, using S_CUSTOM (id: 23) it's reassumed in this part of xml auto-generated: "28": { "protocol_version": "2.3.1", "battery_level": 0, "type": 18, "children": { <code_snipped> "100": { "description": "Internal variables", "id": 100, "values": { "24": "0.0", "25": "1.0" }, "type": 23 } }, "heartbeat": 0, "sketch_name": "node28Studio", "sketch_version": null, "sensor_id": 28 }, So, actually the infos are correctly sent. It's more a matter if the usage of the IDs is correct to avoid further conflicts, if any. That's the reason I'm asking ;-) Thanks, Simon
  • Gateway protection

    7
    0 Votes
    7 Posts
    2k Views
    T
    no, what is it?where can I find the documentation?
  • Merry Christmas / Happy New Year

    1
    4 Votes
    1 Posts
    534 Views
    No one has replied
  • Getting Garbage value in serial monitor

    3
    0 Votes
    3 Posts
    714 Views
    mfalkviddM
    By the way, the default baud rate used by MySensors is 115200 so try that if you haven't already.
  • Arduino has an official CLI app now

    9
    1 Votes
    9 Posts
    2k Views
    alowhumA
    I just got this to work. It's great! I've updated the first post with a longer guide.
  • Merry Christmas and Happy New Year

    5
    0 Votes
    5 Posts
    2k Views
    B
    Yes Glædeligt jul :-)
  • diagram of MQTT Gateway and MQTT Broker in the overall scheme of things ?

    10
    0 Votes
    10 Posts
    2k Views
    G
    Thanks...it is starting to make a bit more sense of why I may want to use MQTT. Your Vacuum project looks great.
  • Monitor, display, control, but no automation, no controller?

    5
    0 Votes
    5 Posts
    1k Views
    NickKN
    @nickk I changed skins and now I have spyglass search option.
  • Attiny and Rfid

    1
    0 Votes
    1 Posts
    635 Views
    No one has replied
  • Very funny hobby electronics video

    5
    2 Votes
    5 Posts
    1k Views
    Y
    @alexsh1 eh, yeah. Nearly 2 days ;-)
  • Sensors error

    3
    0 Votes
    3 Posts
    1k Views
    B
    hysteresis https://duckduckgo.com/?q=hysteresis&t=canonical&atb=v79-4&ia=definition
  • Concept of a flexible but simple smart network

    25
    1
    1 Votes
    25 Posts
    7k Views
    A
    Linux Router https://github.com/axillent/swi_appserver
  • How to make tube lights smart with Philips Hue Tap?

    2
    0 Votes
    2 Posts
    802 Views
    T
    @thaliquids I would tackle this by finding a controller (here's a few examples of controllers: https://www.mysensors.org/controller) that supports Philips Hue. The controller would then get an event each time a button is pressed on the tap. Then you link a script or other action to that event which switches the tube light on or off. The advantage of using a controller is that the corresponding action can be done on a device totally different from Hue (MySensors, Sonoff, Z-Wave etc.)
  • Ask 0-10V output how to do

    Locked
    2
    0 Votes
    2 Posts
    670 Views
    electrikE
    On AliExpress, banggood etc you can buy a pwm to 0-10v converter, so you can make this voltage with a pwm signal
  • Sonoff, how it works?

    7
    0 Votes
    7 Posts
    3k Views
    C
    @mhmd It's a function of your router's network address translation (NAT). It's the same way your browser can get push notifications (as from this forum). When your Sonoff device communicates with the Chinese server, your router uses a different port number and stores that info. When traffic comes in to your external IP address with that port number the router knows which internal IP address and port to send it to. You can read more about NAT elsewhere. The bottom line is that the Chinese server isn't getting special access to your network and doesn't know your local IP address.
  • Gerber to STL

    5
    0 Votes
    5 Posts
    3k Views
    D
    @bjacobse Thanks for the info. I will look into that.

15

Online

12.1k

Users

11.2k

Topics

113.4k

Posts