Announcement

Collapse
No announcement yet.

mcsMQTT Plugin

Collapse
This is a sticky topic.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    @Michael,

    Curious about the picture in the mcsMQTT plugin manual showing Garage Door manual parameters configuration page showing relay pulse and maximum time for input change where as mine only shows top half of parameters.
    - Pete

    Auto mator
    Homeseer 3 Pro - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e 64 bit Intel Haswell CPU 16Gb
    Homeseer Zee2 (Lite) - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e - CherryTrail x5-Z8350 BeeLink 4Gb BT3 Pro
    HS4 Lite - Ubuntu 22.04 / Lenovo Tiny M900 / 32Gb Ram

    HS4 Pro - V4.1.18.1 - Ubuntu 22.04 / Lenova Tiny M900 / 32Gb Ram
    HSTouch on Intel tabletop tablets (Jogglers) - Asus AIO - Windows 11

    X10, UPB, Zigbee, ZWave and Wifi MQTT automation-Tasmota-Espurna. OmniPro 2, Russound zoned audio, Alexa, Cheaper RFID, W800 and Home Assistant

    Comment


      The Garage Door was my first Tasmota mod and there was some "hard coded" logic that worked for me, but was later changed to make it more generalized. The GPIO were selected to be 09 and 10 Switch1 and Switch2. With mcsTasmota there are 56 and 57 for Door Open and Door Closed sensors. If you select these then then relay and max time settings on the browser should be available. I dont remember what testing I did again for Door control after I added these. If you have an issue I can look back at it with one of my extra Sonoff's. I dont want to mess with my Sonoff that is working well in the garage now. There is also firmware_door.bin (December) and firmware_door_counter.bin (March) and firmware_hue.bin (May) which are images I captured as each project was done. The mcsTasmota added irrigation scheduling.

      Comment


        Thank you Michael.
        - Pete

        Auto mator
        Homeseer 3 Pro - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e 64 bit Intel Haswell CPU 16Gb
        Homeseer Zee2 (Lite) - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e - CherryTrail x5-Z8350 BeeLink 4Gb BT3 Pro
        HS4 Lite - Ubuntu 22.04 / Lenovo Tiny M900 / 32Gb Ram

        HS4 Pro - V4.1.18.1 - Ubuntu 22.04 / Lenova Tiny M900 / 32Gb Ram
        HSTouch on Intel tabletop tablets (Jogglers) - Asus AIO - Windows 11

        X10, UPB, Zigbee, ZWave and Wifi MQTT automation-Tasmota-Espurna. OmniPro 2, Russound zoned audio, Alexa, Cheaper RFID, W800 and Home Assistant

        Comment


          Attached Files

          Comment


            Thank you taylormia!!!

            Very nice!!

            Node Red and Michaels mcsMQTT plugin is addicting.

            Here is my basement RPi2 - Stretch Node Red - OWFS - MQTT set up for 12 sensors which cover the main floor, garage, basement and outside.

            I massage the values with the Node Red function object for conversions of C and F and rounding off values as presented to the mcsMQTT plugin.

            BTW there are many marine coastal facilities using Davis weather stations and you can get to all of the data a few layers down on the web sites. It is all there live.

            [ATTACH]69087[/ATTACH]
            Last edited by Pete; May 30, 2018, 08:04 AM.
            - Pete

            Auto mator
            Homeseer 3 Pro - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e 64 bit Intel Haswell CPU 16Gb
            Homeseer Zee2 (Lite) - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e - CherryTrail x5-Z8350 BeeLink 4Gb BT3 Pro
            HS4 Lite - Ubuntu 22.04 / Lenovo Tiny M900 / 32Gb Ram

            HS4 Pro - V4.1.18.1 - Ubuntu 22.04 / Lenova Tiny M900 / 32Gb Ram
            HSTouch on Intel tabletop tablets (Jogglers) - Asus AIO - Windows 11

            X10, UPB, Zigbee, ZWave and Wifi MQTT automation-Tasmota-Espurna. OmniPro 2, Russound zoned audio, Alexa, Cheaper RFID, W800 and Home Assistant

            Comment


              Thank you taylormia!!!
              Very nice!!
              You're welcome. It was fun putting it together..

              Node Red and Michaels mcsMQTT plugin is addicting.
              Yes, indeed it is

              Here is my basement RPi2 - Stretch Node Red - OWFS - MQTT set up for 12 sensors which cover the main floor, garage, basement and outside.
              What kind of sensors are you using?

              I massage the values with the Node Red function object for conversions of C and F and rounding off values as presented to the mcsMQTT plugin.
              Would you mind sharing your node-red flows for these?

              BTW there are many marine coastal facilities using Davis weather stations and you can get to all of the data a few layers down on the web sites. It is all there live.
              I live in the middle of the country, so coastal weather stations would not help me. On the bright side, I will be getting my own Davis VP2 in the next couple of months

              Comment


                What kind of sensors are you using?

                1-Wire temperature, humidity combo, dual counters (water, rain tipping bucket, lightning), barometer, et al connected to a Maxim 9097U which plugs in to the RPi running Node Red.

                Plus a Davis / Console / big buffer serial board/cable from Australia and recently purchase a MeteoStick for more sensors.

                Needed for the 1-Wire node red stuff is:

                1 - 9097U and sensors
                2 - apt get install owfs
                3 - node red modules for OWFS and MQTT.

                Here is one temperature flow. They are all the same except for the mac address of the 1-wire sensor and function to convert C to F and Mosquitto stuff.

                Here is one 7 node flow. Note the payload conversion formula is just a one liner.

                Code:
                [{"id":"871c18ec.0f366","type":"inject","z":"6be1d6c0.f7c008","name":"26.F37-Temp","topic":"26.F372E7000000/temperature","payload":"temperature","payloadType":"str","repeat":"10","crontab":"","once":true,"onceDelay":0.1,"x":120,"y":1000,"wires":[["d346f8db.245de"]]},{"id":"d346f8db.245de","type":"nro-read out","z":"6be1d6c0.f7c008","config":"f0cd99d8.329ed8","path":"26.F372E7000000/temperature","name":"26.F37-Temp","x":220,"y":1000,"wires":[["7f441e49.1d5268"]]},{"id":"7f441e49.1d5268","type":"change","z":"6be1d6c0.f7c008","name":"26.F37-Temp","rules":[{"t":"set","p":"retain","pt":"msg","to":"true","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":320,"y":1000,"wires":[["c979bf80.9db35"]]},{"id":"c979bf80.9db35","type":"function","z":"6be1d6c0.f7c008","name":"26.F37-Temp","func":"msg.payload = Math.round((msg.payload * 1.8 + 32) * 10) / 10;\nreturn msg;","outputs":1,"noerr":0,"x":460,"y":1000,"wires":[["7ee40d45.3757c4","7409a181.3d403"]]},{"id":"7ee40d45.3757c4","type":"mqtt out","z":"6be1d6c0.f7c008","name":"26.F37-Temp","topic":"","qos":"","retain":"","broker":"8b363e4a.a0761","x":580,"y":940,"wires":[]},{"id":"7409a181.3d403","type":"debug","z":"6be1d6c0.f7c008","name":"26.F37-Temp","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"payload","x":680,"y":1000,"wires":[]},{"id":"5b3b8dea.4f3fbc","type":"comment","z":"6be1d6c0.f7c008","name":"Combo Sensor Outside - HB 12VDC - 26F37","info":"","x":190,"y":960,"wires":[]},{"id":"f0cd99d8.329ed8","type":"nro-config","z":"","host":"localhost","port":"4304"},{"id":"8b363e4a.a0761","type":"mqtt-broker","z":"","name":"Temperature","broker":"localhost","port":"1883","tls":"f60d5ae5.e3919","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"willTopic":"","willQos":"0","willPayload":"","birthTopic":"10.8A23CB010800/temperature","birthQos":"1","birthRetain":"true","birthPayload":"10.8A23CB010800/temperature"},{"id":"f60d5ae5.e3919","type":"tls-config","z":"","name":"pete","cert":"","key":"","ca":"","certname":"MQTT_Broker.crt","keyname":"MQTT_Broker.key","caname":"MQTT_CA.crt","verifyservercert":false}]
                Davis makes a good weather station.
                - Pete

                Auto mator
                Homeseer 3 Pro - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e 64 bit Intel Haswell CPU 16Gb
                Homeseer Zee2 (Lite) - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e - CherryTrail x5-Z8350 BeeLink 4Gb BT3 Pro
                HS4 Lite - Ubuntu 22.04 / Lenovo Tiny M900 / 32Gb Ram

                HS4 Pro - V4.1.18.1 - Ubuntu 22.04 / Lenova Tiny M900 / 32Gb Ram
                HSTouch on Intel tabletop tablets (Jogglers) - Asus AIO - Windows 11

                X10, UPB, Zigbee, ZWave and Wifi MQTT automation-Tasmota-Espurna. OmniPro 2, Russound zoned audio, Alexa, Cheaper RFID, W800 and Home Assistant

                Comment


                  Relating to RF weather / Davis et al there is also a DIY combo Arduino board(s) off on a bit of a tangent here...

                  called WeatherDuino

                  Author utilizes the Davis serial language for a combination device receiver/transmitter that utilizes Davis or any other kind of weather sensor.
                  Cumulus works with this device. Thing is the author of Cumulus is retiring and now traveling / sightseeing. (hence tinkering with WeeWx - mostly python).

                  Ideally if the WeatherDuino device spoke Mosquitto ....

                  [ATTACH]69105[/ATTACH]
                  [ATTACH]69106[/ATTACH]
                  [ATTACH]69107[/ATTACH]
                  [ATTACH]69108[/ATTACH]
                  [ATTACH]69109[/ATTACH]
                  Last edited by Pete; May 31, 2018, 07:38 AM.
                  - Pete

                  Auto mator
                  Homeseer 3 Pro - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e 64 bit Intel Haswell CPU 16Gb
                  Homeseer Zee2 (Lite) - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e - CherryTrail x5-Z8350 BeeLink 4Gb BT3 Pro
                  HS4 Lite - Ubuntu 22.04 / Lenovo Tiny M900 / 32Gb Ram

                  HS4 Pro - V4.1.18.1 - Ubuntu 22.04 / Lenova Tiny M900 / 32Gb Ram
                  HSTouch on Intel tabletop tablets (Jogglers) - Asus AIO - Windows 11

                  X10, UPB, Zigbee, ZWave and Wifi MQTT automation-Tasmota-Espurna. OmniPro 2, Russound zoned audio, Alexa, Cheaper RFID, W800 and Home Assistant

                  Comment


                    Hey Pete, See my post on this in the HS3 Weather Discussion forum...

                    Comment


                      @Michael,

                      Can I add a DHT22 combo sensor to the Sonoff Basic module and will it work with your current firmware?
                      - Pete

                      Auto mator
                      Homeseer 3 Pro - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e 64 bit Intel Haswell CPU 16Gb
                      Homeseer Zee2 (Lite) - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e - CherryTrail x5-Z8350 BeeLink 4Gb BT3 Pro
                      HS4 Lite - Ubuntu 22.04 / Lenovo Tiny M900 / 32Gb Ram

                      HS4 Pro - V4.1.18.1 - Ubuntu 22.04 / Lenova Tiny M900 / 32Gb Ram
                      HSTouch on Intel tabletop tablets (Jogglers) - Asus AIO - Windows 11

                      X10, UPB, Zigbee, ZWave and Wifi MQTT automation-Tasmota-Espurna. OmniPro 2, Russound zoned audio, Alexa, Cheaper RFID, W800 and Home Assistant

                      Comment


                        I branched off at Tasmota 5.9.1. I did not intentionally remove any of its capability, but added to it. I see many references to DHT22 in the source so it should work.

                        Comment


                          Thank you Michael.
                          - Pete

                          Auto mator
                          Homeseer 3 Pro - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e 64 bit Intel Haswell CPU 16Gb
                          Homeseer Zee2 (Lite) - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e - CherryTrail x5-Z8350 BeeLink 4Gb BT3 Pro
                          HS4 Lite - Ubuntu 22.04 / Lenovo Tiny M900 / 32Gb Ram

                          HS4 Pro - V4.1.18.1 - Ubuntu 22.04 / Lenova Tiny M900 / 32Gb Ram
                          HSTouch on Intel tabletop tablets (Jogglers) - Asus AIO - Windows 11

                          X10, UPB, Zigbee, ZWave and Wifi MQTT automation-Tasmota-Espurna. OmniPro 2, Russound zoned audio, Alexa, Cheaper RFID, W800 and Home Assistant

                          Comment


                            Does the mosquito have to be installed on a ubuntu server or can it be installed on a Windows server (the same server where I have hs3 installed)?

                            Comment


                              Anywhere on the network is fine for Mosquitto.

                              Comment


                                Retained messages

                                Micheal, is there a way to set messages to be retained when sent via an event? I know it can be done via a script, but I would like to simplify this. If not currently available, could the feature be added to the script dialog box?

                                Best,
                                Frank

                                Comment

                                Working...
                                X