Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Controllers
  3. PiDome
  4. PiDome Domotica/Home Automation

PiDome Domotica/Home Automation

Scheduled Pinned Locked Moved PiDome
controllerserialgatewayraspberrymqttpidome
199 Posts 17 Posters 110.7k Views 5 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • FrancoisF Offline
    FrancoisF Offline
    Francois
    wrote on last edited by
    #33

    @john Mysensor MQTT is now working. Thank for all you help :-) :+1:

    1 Reply Last reply
    0
    • JohnJ Offline
      JohnJ Offline
      John
      Plugin Developer
      wrote on last edited by
      #34

      :+1: Next step would be integrating the Ethernet gateway, but that could take a week or so (working on other demanding tasks currently).

      My Domotica project: http://www.pidome.org

      1 Reply Last reply
      0
      • FrancoisF Offline
        FrancoisF Offline
        Francois
        wrote on last edited by
        #35

        @John I see that you don't have any time days in your automation triggers. Do you plan to do this at a later stage?
        I see that you are going to do twitter integration are you look as other message integration tools like pushbullet?

        1 Reply Last reply
        0
        • JohnJ Offline
          JohnJ Offline
          John
          Plugin Developer
          wrote on last edited by John
          #36

          Currently the triggers do days in the form of "Every day", "Weekdays", "Weekend" and per day like "Mon", "Tue":

          Alt text

          The time currently can be fixed, sunrise or sunset with calculations:

          Alt text

          The above can then be resulted in a rule like below:

          Alt text

          The above would then say that: "turn true every day when it is 30 minutes before sunset".


          About messaging integration:

          The messaging framework is currently partly integrated and currently only takes care of SMS messages (outgoing). When the full messaging framework is implemented twitter will be added together with it's messaging API which could then be used to integrate web services. Currently i'm still very busy with a lot of core parts where developing devices, plugins stands next to it when specific API parts are done. So i can not say if or when pushbullet integration will be available and/or it is created by me.

          My Domotica project: http://www.pidome.org

          1 Reply Last reply
          0
          • FrancoisF Offline
            FrancoisF Offline
            Francois
            wrote on last edited by
            #37

            @John what will I do if my Alarm is trigger and I want to switch it off after 10 min?

            1 Reply Last reply
            0
            • JohnJ Offline
              JohnJ Offline
              John
              Plugin Developer
              wrote on last edited by
              #38

              Because triggers are meant to be used as real triggers. If this happens quickly do that. If you would automate your alarm you would need to create a second trigger which would say, depending on the earlier example: when every day it is 20 minutes before sunset, execute alarm off.

              Currently next to the triggers i'm busy with Automation flows you can build with blockly. But this is still under heavy development: https://twitter.com/Pi_Dome/status/510355701114605568/photo/1

              My Domotica project: http://www.pidome.org

              1 Reply Last reply
              0
              • FrancoisF Offline
                FrancoisF Offline
                Francois
                wrote on last edited by
                #39

                @john I have the automation trigger for if the humidity for the bathroom. I have two trigger on for switching the fan on if Hum is >20 and one to switch the fan off it is Hum <19 this work. What I try now do now is combine this into one trigger where I use the "or" function . Can the execution list only execute one function for multiple condition?

                upload-c4e64a4f-3ec2-48c0-8888-75e85bb0c6b1

                1 Reply Last reply
                0
                • JohnJ Offline
                  JohnJ Offline
                  John
                  Plugin Developer
                  wrote on last edited by
                  #40

                  @Fwessels
                  The above is one trigger.

                  Currently you have set it up like:
                  IF (the data description of room 01 > 20%H) OR (the data description of room 01 < 19%H) DO (set study lights to On)

                  Triggers are really also meant as triggers and are based on a combination of rules which should always revert to true with a list of actions of the total list of rules are true. To put it simple: "When this, then that". There is no "else" ;)

                  If you want to turn on and turn of based on a quick trigger action you should or create two triggers, or wait for the Automation rules to be implemented in the server which currently is in development.

                  My Domotica project: http://www.pidome.org

                  1 Reply Last reply
                  0
                  • FrancoisF Offline
                    FrancoisF Offline
                    Francois
                    wrote on last edited by
                    #41

                    @john I have two triggers and that is working.

                    1 Reply Last reply
                    0
                    • FrancoisF Offline
                      FrancoisF Offline
                      Francois
                      wrote on last edited by
                      #42

                      @John Hi did not bug you for an while. I change my setup to work with the MQTTGateway but now I have the following issue.

                      1. My motion and door sensors is not changing status in the "Data description" field. This did work with the serial gateway.
                      2. On my relay button sensor the "Toggle description" is not changing it I press the button this did work on the serial gateway.

                      I run you latest snapshot (373)

                      PS the Android client is now working on my Tablet and Phone (4.4.2)

                      JohnJ 1 Reply Last reply
                      0
                      • FrancoisF Francois

                        @John Hi did not bug you for an while. I change my setup to work with the MQTTGateway but now I have the following issue.

                        1. My motion and door sensors is not changing status in the "Data description" field. This did work with the serial gateway.
                        2. On my relay button sensor the "Toggle description" is not changing it I press the button this did work on the serial gateway.

                        I run you latest snapshot (373)

                        PS the Android client is now working on my Tablet and Phone (4.4.2)

                        JohnJ Offline
                        JohnJ Offline
                        John
                        Plugin Developer
                        wrote on last edited by
                        #43

                        @Francois

                        That's the current latest yeah, have you defined the the data and/or toggle buttons as boolean or as an integer?

                        The Android client was kinda annoying, when deployed on a device from the development it worked, but when installed by the apk file it stopped working... Thanks for confirming it now works!

                        My Domotica project: http://www.pidome.org

                        1 Reply Last reply
                        0
                        • FrancoisF Offline
                          FrancoisF Offline
                          Francois
                          wrote on last edited by
                          #44

                          @John I did the same as the serial configuration as data field and boolean

                          1 Reply Last reply
                          0
                          • JohnJ Offline
                            JohnJ Offline
                            John
                            Plugin Developer
                            wrote on last edited by
                            #45

                            @Francois

                            So both the data field as the toggle buttons are defined as booleans?

                            Since alpha 271 the server also displays the last received date and time positioned above the controls, are these modified? Not yet real time in the web interface, you have to click the device again in the list to see if it is updated.

                            My Domotica project: http://www.pidome.org

                            1 Reply Last reply
                            0
                            • FrancoisF Offline
                              FrancoisF Offline
                              Francois
                              wrote on last edited by
                              #46

                              @John both the fields are defined as data fields and as boolean. But the data field is not changing. This configuration is working in the serial gateway. Should I change this to toggle button for the MQTTGateway?

                              upload-0c9c8b71-3c36-4c09-a365-6c2c6b6863b8

                              1 Reply Last reply
                              0
                              • JohnJ Offline
                                JohnJ Offline
                                John
                                Plugin Developer
                                wrote on last edited by
                                #47

                                @Francois
                                Not needed, i understood you also had a toggle button.

                                Is it possible to mail you an updated MySensors library package? it currently is not possible to compile the whole server.

                                My Domotica project: http://www.pidome.org

                                1 Reply Last reply
                                0
                                • FrancoisF Offline
                                  FrancoisF Offline
                                  Francois
                                  wrote on last edited by
                                  #48

                                  @John Yes you can email the update library. Do you still have my email address?

                                  JohnJ 1 Reply Last reply
                                  0
                                  • FrancoisF Francois

                                    @John Yes you can email the update library. Do you still have my email address?

                                    JohnJ Offline
                                    JohnJ Offline
                                    John
                                    Plugin Developer
                                    wrote on last edited by John
                                    #49

                                    @Francois
                                    Yep, and it's on it's way.

                                    [EDIT]Confirmed as fixed and also generally available with server download[/EDIT]

                                    My Domotica project: http://www.pidome.org

                                    1 Reply Last reply
                                    0
                                    • JohnJ Offline
                                      JohnJ Offline
                                      John
                                      Plugin Developer
                                      wrote on last edited by
                                      #50

                                      I want to thank @Francois and others for some intensive testing of MySensors (and other stuff) in PiDome via both the serial and MQTT gateways.

                                      P.S. From today until October 3rd responses are somewhat delayed due to the upcomming JavaOne conference.

                                      My Domotica project: http://www.pidome.org

                                      1 Reply Last reply
                                      0
                                      • JohnJ John

                                        Recently i have build support for MySensors in home automation software i'm writing and in this thread i would like to provide the opportunity to answer questions and post some F.A.Q.

                                        I know PiDome is very new and at least to say also unknown in the Automation scene. The base information about PiDome is already posted at the build section below the Controllers header. So here i will post some information how the support is integrated.

                                        First off you will need to add the gateway device. Open the peripherals page, plugin the Arduino Nano or other used serial device with the Mysensors Gateway code. The device will be added to the list. Click on it and set the Serial information, 115200 Baud, 1 stop bit, no parity, 8 databits and the MySensors peripheral driver (Settings Arduino Nano specific, check your serial device of there are other requirements). If the connection is a one timer press "Set and start" If these settings need to be persistent between reboots and server restarts press "Set, save and start".

                                        To use MySensors nodes within PiDome you will need Device skeletons. These skeletons are created with XML or a graphical editor which creates this xml. This skeleton is used to define a device structure which tells:

                                        • Which groups a device has (At least one is mandatory),
                                        • What kind of controls are used (Toggle, Button, Slider, etc..) in these groups,
                                        • what kind of datatypes they hold (integer, float, string, boolean),
                                        • What kind of options a device has (not used with MySensors) and
                                        • device location type.

                                        To explain the above mapped to MySensors devices with an example:
                                        Let's say you have a sensor node which holds a type S_LIGHT, which is a light actuator (you can toggle this of or on). So you would probably use the variable type V_LIGHT which is light status On or Off (1 or 0). and you have about 5 of these exact same nodes.

                                        Let's translate:
                                        You will need the device editor to create the above sensors node. This means a sensors node is a device in PiDome. To let this device know how your sensor node looks like you will need to define the S_LIGHT sensor type and V_LIGHT variable type.

                                        The sensor types are defined as groups in PiDome. So if you have the device editor opened and add a group you will need to supply a group id and a group name by drag and drop this to the device field. The name can just be like "My light", but the group id MUST be named after the sensor id thus must be the number you used in gw.present(). For example, if used gw.present(0,S_LIGHT); the group id must be 0.

                                        Now it comes to defining a variable type. When you drag and drop the toggle control (which switches between two states) you will be prompted to fill in details. The most important ones are the control id which MUST be the name of the sensor variable type which in this example is V_LIGHT. The name of this control can be something like "Light Switch". The datatype of V_LIGHT explained on the protocol page is 1=On, 0=Off, so you would use the integer datatype. the On label would be "On" with value 1, and off the opposite.

                                        When the device is saved, you have created a skeleton ready to be used. and you can start adding this single skeleton 5 times.
                                        More information about adding devices is posted on the PiDome website at: http://pidome.wordpress.com/2014/08/10/added-partly-mysensors-org-wireless-devices-support-api-1-4-beta/.

                                        The title is a little bit misleading because there now is support for the final 1.4 version.

                                        There is support for Battery level and Inclusion mode triggered by the hardware button.

                                        A final todo:

                                        • Fully test automatic nodes address assignments (i am not able to test this because lack of hardware, it is there though)

                                        MySensors MQTT support: Available using the MQTT gateway


                                        I will try to be here as much as possible but PiDome is quite a broad project.


                                        [EDIT] We now have a forum available, so if you have questions which are not related to MySensors these can be posted over there[/EDIT]

                                        JohnJ Offline
                                        JohnJ Offline
                                        John
                                        Plugin Developer
                                        wrote on last edited by John
                                        #51

                                        Well, normally i do not brag about things, and this has nothing to do with MySensors, but i thought that this might be ok.

                                        Sunday night PiDome has received the Duke's Choice Award for being innovative. It is not only for the server but comprehends the whole PiDome platform (Server, Desktop OS like client, Android client, upcoming Raspberry Pi client which can be self designed on the server and the upcoming Netbeans PiDome Platform development plugin). They have not only looked at the current state of the project but also future promises and future platform part releases (from which there is code in progress)

                                        The price announcement included the following sentence: "Because it's so exceptional what your project has done, we decided to upgrade you to the duke's choice award instead."

                                        So we are proud as [FILL_IN].

                                        So yeah, i just wanted to brag about it :)

                                        My Domotica project: http://www.pidome.org

                                        bjornhallbergB 1 Reply Last reply
                                        1
                                        • JohnJ John

                                          Well, normally i do not brag about things, and this has nothing to do with MySensors, but i thought that this might be ok.

                                          Sunday night PiDome has received the Duke's Choice Award for being innovative. It is not only for the server but comprehends the whole PiDome platform (Server, Desktop OS like client, Android client, upcoming Raspberry Pi client which can be self designed on the server and the upcoming Netbeans PiDome Platform development plugin). They have not only looked at the current state of the project but also future promises and future platform part releases (from which there is code in progress)

                                          The price announcement included the following sentence: "Because it's so exceptional what your project has done, we decided to upgrade you to the duke's choice award instead."

                                          So we are proud as [FILL_IN].

                                          So yeah, i just wanted to brag about it :)

                                          bjornhallbergB Offline
                                          bjornhallbergB Offline
                                          bjornhallberg
                                          Hero Member
                                          wrote on last edited by
                                          #52

                                          @John Well deserved! Congrats! You've almost made me a believer in Java so that is saying something ;-)

                                          Some of these other home automation controllers (OpenHAB ...) should really reconsider what and how they're doing things. I know they didn't start out on single board computers like the RPi, but just to recapitulate, both running their factory defaults, OpenHAB takes almost as long to boot on my i7 as PiDome takes on the RPi.

                                          JohnJ 1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          11

                                          Online

                                          11.7k

                                          Users

                                          11.2k

                                          Topics

                                          113.1k

                                          Posts


                                          Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • MySensors
                                          • OpenHardware.io
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular