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.
  • J Offline
    J Offline
    jonnyfishman
    wrote on last edited by
    #165

    Hi John,

    Happy Xmas and enjoying the new updates.

    I can't seem to get the 'Send data to an url' tab to work in automation anymore. Is this a bug or do I need to change the way it functions (it was working in an earlier version with the same settings).

    Jon

    JohnJ 1 Reply Last reply
    0
    • J jonnyfishman

      Hi John,

      Happy Xmas and enjoying the new updates.

      I can't seem to get the 'Send data to an url' tab to work in automation anymore. Is this a bug or do I need to change the way it functions (it was working in an earlier version with the same settings).

      Jon

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

      @jonnyfishman Thnx! Hope you enjoyed Christmas as much as i did.

      There has been some streamlining done of code. This is the second report and i'm currently looking into it.

      If possible, Stop the server and start it with "./server.sh trace". Keep it running for a couple of minutes (so it can do a couple of http send commands). then go to "Server settings" in the web interface and turn of debug logging (bot trace and debug are turned of with this). Send me the file "logs/system/appLog.txt" to support@pidome.org with a reference to this post.

      Cheers,
      John.

      [EDIT]The other reported issue was a timeout on the remote host. Please take a look in the log file if this is also the case for you[/edit]

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

      1 Reply Last reply
      0
      • R Offline
        R Offline
        ricardot
        wrote on last edited by
        #167

        John,

        I would like to know what I need to do to create a rule to turn on an off a mysensors relay in a specific time of the day. And also If is possible Pidome to send me a email when it happens.

        Thanks!

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

          @ricardot At the automation rules create a new rule:

          • At the left side you can select rules logic and select an if block. put this on the field
          • Click on Time/Date/Dayparts on the left and select the block when time is, and fill in the time.
          • Click on devices on the left and select your MySensors device and choose the action.
          • Give your rule a name and description.

          Currently there is no option to send an email but there are messaging (which send messages to clients, pushbullet and sms. Email will follow asap.

          P.S. Note to all: Will be on leave until the 5th of januari next year (sounds long...). There will be support but this is at a minimal level.

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

          1 Reply Last reply
          0
          • J Offline
            J Offline
            jonnyfishman
            wrote on last edited by jonnyfishman
            #169

            Hi John,

            Checked the appLog.txt and the request was going through (it received a HTTP 200 code). The problem was the automation rule. It was no longer happy with having a variable as a parameter, I had to change it back to a string for it to work [examples below]?
            **ricardot **- This might also work for you. I'm using the 'URL hits' under 'miscellaneous' to email myself using the code below. Essentially it sends out a form to a waiting page on my website that automatically emails me when it receives the correct data, using the PHP mail function.

            fourm1.png
            This works.

            forum2.png
            This doesn't

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

              @jonnyfishman
              Sorry for the late response, the holidays consumed us all quite a lot, and i'm still on a sort of holiday leave, Could you send me the log, i'm interested in why the variable is not handled.

              Cheer,
              John.

              P.S. Happy new year!

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

              1 Reply Last reply
              0
              • J Offline
                J Offline
                jonnyfishman
                wrote on last edited by
                #171

                Happy new year to you,

                I've attached the appLog. Relevant lines appear to be 2495 and 1555.
                I recreated the error several times to make it show up. At 2495 the variable is listed as null, whereas at 1555 the variable is passing what it should.

                appLog.txt

                Thanks,
                Jon

                JohnJ 2 Replies Last reply
                0
                • J jonnyfishman

                  Happy new year to you,

                  I've attached the appLog. Relevant lines appear to be 2495 and 1555.
                  I recreated the error several times to make it show up. At 2495 the variable is listed as null, whereas at 1555 the variable is passing what it should.

                  appLog.txt

                  Thanks,
                  Jon

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

                  @jonnyfishman Currently i'm not in the position to check it. I'm back at 5th of January. I will pick it up that day.

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

                  1 Reply Last reply
                  0
                  • J jonnyfishman

                    Happy new year to you,

                    I've attached the appLog. Relevant lines appear to be 2495 and 1555.
                    I recreated the error several times to make it show up. At 2495 the variable is listed as null, whereas at 1555 the variable is passing what it should.

                    appLog.txt

                    Thanks,
                    Jon

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

                    @jonnyfishman

                    I have updated the latest build on the build server. It looked like that the fallback (create a string type variable) did not set the variable value. This should now be fixed.

                    Cheers!

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

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

                      We now have a forum available, so if you have questions which are not related to MySensors these can be posted over there. This way this forum can be kept clean and dedicated to mysensors ;).

                      Cheers!

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

                      1 Reply Last reply
                      1
                      • 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]

                        D Offline
                        D Offline
                        dafoink
                        wrote on last edited by
                        #175

                        @John I am new to all of this. I am an Arduino programmer. but this is a first to communicate with a controller. Is there a simple "ping/pong" example. where a device is created in PiDome that is a basic switch or trigger that then just sends a message to an Arduino. and then the Arduino sketch sends back a known value that we can then review in PiDome?

                        brian

                        JohnJ 1 Reply Last reply
                        0
                        • D dafoink

                          @John I am new to all of this. I am an Arduino programmer. but this is a first to communicate with a controller. Is there a simple "ping/pong" example. where a device is created in PiDome that is a basic switch or trigger that then just sends a message to an Arduino. and then the Arduino sketch sends back a known value that we can then review in PiDome?

                          brian

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

                          @dafoink
                          Communication with a plain Arduino using USB it currently needs to be programmed in the server. Methods to do things like ping/pong will be eventually possible using the web interface.

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

                          JohnJ 1 Reply Last reply
                          0
                          • JohnJ John

                            @dafoink
                            Communication with a plain Arduino using USB it currently needs to be programmed in the server. Methods to do things like ping/pong will be eventually possible using the web interface.

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

                            I have added colorpicker support to the serial version of MySensors, When it has proven itself it will be added to the MQTT version as wel.

                            I have tested this with one user and he has confirmed it working.

                            It works as follows:
                            Add a color picker to the controls as you would do with any other control (data/toggle button/etc..).

                            There are three color modes, these are only used for how the color picker behaves in the interfaces. These are:

                            • RGB - Shows three sliders: red, green and blue, use these to choose a color.
                            • HSL - Shows three sliders: Hue, Saturation and lightness. Different with the RGB is that you can turn lightness to 0 ti simulate lights off.
                            • CIE (Lch)- Shows three sliders: Lightness, hue and chroma, use this with calibrated fixtures, it can be quite off.

                            Colors are send as RGB string to nodes without the number sign (#). I recommend using V_VAR(1-5) as the variable type as it is custom data.

                            You also need a minimum of one button added in the colorpicker settings window. This will add a button so the selected color in the color picker will actually be send. The value is not important but must be filled in.

                            Below an screenshot as an example of how to set up:

                            http://s9.postimg.org/k1qvy23f3/Capture1.jpg

                            Code for retrieving the r,g and b from the send string is available in this post: http://forum.mysensors.org/topic/816/send-color-data-to-sensors/14
                            I personally have not tested the code (currently occupied hardware).

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

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

                              This is an important message for all MySensors PiDome users.

                              Oracle has released an update for Java on ARM. This update is numbered: Java 8 Update 33. But this release has features removed which the alpha builds are utilizing. I was busy with a feature to supply a graphical user interface embedded in the server so the Raspberry Pi could be used as server and client at the same time (slimmed down version).

                              Because Oracle decided to remove JavaFX from this update, and i have JavaFX test code within the server, this update will completely $#%$ PiDome so it won't run correctly, or wont run at all.

                              I have to remove all JavaFX related code from the server before you guys can upgrade to the new Java Release. I'm sorry for any inconvenience if you really need to upgrade Java.

                              I will place a message in this thread when i have fixed it.

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

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

                                Have been quite busy the last two days to remove any possibility to run the server with an embedded client. So you are save to update again. The latest version with the "fixes" is available on http://builder.pidome.org/job/PiDome Server platform snapshot build/lastSuccessfulBuild/ .

                                All though all dependencies have been removed it could show a quirk here and there, but will not influence server inner workings.

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

                                1 Reply Last reply
                                0
                                • B Offline
                                  B Offline
                                  bomber
                                  wrote on last edited by
                                  #180

                                  Hi John!

                                  Can You tell, is it possible to show battery level and sketch name and version in PiDome? How to describe this information under custom device?

                                  Thanks in advance

                                  Vj

                                  JohnJ 1 Reply Last reply
                                  0
                                  • B bomber

                                    Hi John!

                                    Can You tell, is it possible to show battery level and sketch name and version in PiDome? How to describe this information under custom device?

                                    Thanks in advance

                                    Vj

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

                                    Hi @bomber

                                    Battery status can be done this way:

                                    1. Drag an drop a group to the device declaration field. You can give it any name you want, but the group id must be named "INTERNAL"(capital letters without the " (quotes)).
                                    2. Drag and drop a data field control to this group. You can give it any name. but the id must be "I_BATTERY_LEVEL" (also without the quotes).
                                      Set the datatype to "FLOAT". All battery levels in the server are handled this way.
                                    3. If you want, you can select "Battery (0-100%)" as a visual type. This is for future references when the server is able to report low battery levels to users and visualize this in clients.

                                    Sketch name and version is not available, let me see how quick this can be added (if it is a quick add will do it immediately, otherwise it get's a position on my to do list, recent (unfortunate) developments are requiring a lot of my time).

                                    Cheers,

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

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

                                      @bomber

                                      I_SKETCH_NAME and I_SKETCH_VERSION have been added, only currently they only appear after a device has been added and is restart (during presentation and the device is known in the server).

                                      I currently do not have the time to have a persistent solution where the values are remembered during discovery (inclusion). Group id for both is also "INTERNAL" and the control id's must be I_SKETCH_NAME or I_SKETCH_VERSION. The data type is String.

                                      P.S. it is currently builing on the build server, give it a couple of minutes.

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

                                      1 Reply Last reply
                                      0
                                      • AndrewBA Offline
                                        AndrewBA Offline
                                        AndrewB
                                        wrote on last edited by
                                        #183

                                        Hi John,

                                        I'm pretty new to PiDome and MySensors but I've been gradually figuring things out. However I can't get the battery information to display in PiDome. I followed your instructions you gave above but it never receives the information even though I can see it being sent via the com port on my pc. Has the method of receiving the battery information changed in the last 7 months since you posted this?

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

                                          Hi @AndrewB

                                          As far as i'm concerned the methods for displaying battery status have not been changed. it could have been changed between some days seven months ago.

                                          Are you using group id "INTERNAL" and control id "I_BATTERY_LEVEL" ?

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

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


                                          10

                                          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