Discussion Forum to share and further the development of home control and automation, independent of platforms.

    SmartHome Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Unsolved
    (Last Updated: 26 January 2022)
    • ChatGPT - finally I can now retyre in piece and quite, knowing everting is in goof hands.

      A

      ChatGPT samples:

      Me:

      Tell me about an iot program called openLuup.

      It:

      OpenLuup is an open source home automation system that is built on the VeraLuup platform. It is designed to be easy to install and configure, and provides users with a powerful and versatile way to control their home automation devices. OpenLuup offers a wide range of features, including support for many popular home automation devices, scheduling, scripting, and integration with other services. OpenLuup is designed to be customizable, allowing users to create their own home automation systems. It is an excellent choice for those looking to create their own home automation system without spending a lot of money.

      Me:

      Write an iot program using openLuup.

      It:

      --openLuup IoT Program-- -- Initialize Variables -- local device_id = "MyHomeDevice" local temperature_sensor_id = "MyTemperatureSensor" local temperature_threshold = 75 -- Create Devices -- luup.create_device("OpenLuup Temperature Sensor", 0, device_id, "D_GenericSensor1.xml", "I_GenericSensor1.xml", "S_TemperatureSensor1.xml", "") luup.variable_set("urn:upnp-org:serviceId:TemperatureSensor1", "CurrentTemperature", 0, device_id) -- Start Timer -- luup.call_delay("check_temperature", 10, "", false) --Function to Check Temperature-- function check_temperature() local current_temperature = luup.variable_get(temperature_sensor_id, "CurrentTemperature", 0) --Check Temperature Threshold-- if current_temperature >= temperature_threshold then --Send Alert-- luup.call_action("urn:micasaverde-com:serviceId:HomeAutomationGateway1", "SendTextMessage", {PhoneNumber="1234567890", Message="ALERT! Temperature exceeded threshold!"}, 0) end --Reset Timer-- luup.call_delay("check_temperature", 10, "", false) end

      Me:

      Write an iot program using openLuup.

      It:

      Write an iot program using openLuup. -- openLuup IOT Program -- -- Variables local lampState = false local lampTime = 0 -- Functions function lampTimer() if lampTime > 0 then lampTime = lampTime - 1 if lampTime == 0 then luup.variable_set('urn:upnp-org:serviceId:SwitchPower1', 'Status', 0, lampDeviceID) lampState = false end end end -- Setup luup.call_delay('lampTimer', 60, 0) -- Main Loop while true do -- Check for motion if luup.variable_get('urn:micasaverde-com:serviceId:MotionSensor1', 'Tripped', motionSensorDeviceID) == '1' then if not lampState then luup.variable_set('urn:upnp-org:serviceId:SwitchPower1', 'Status', 1, lampDeviceID) lampState = true -- Set lamp timer to 5 minutes lampTime = 300 end end luup.sleep(1) end

      What??

      luup.sleep(1)

      Not good - looks like I still have some semblance of a job to fulfill.

      Me:

      An iot program called openLuup was written by akbooer. Who is akbooer?

      It: (note: answer redacted and as I understand it, also incorrect re: AltUI):

      akbooer is the pseudonym of the software developer and home automation enthusiast. He is the creator of the openLuup home automation software, which is an open-source version of the Vera home automation system. He is also the creator of the AltUI graphical user interface for openLuup.

      Me:

      Who created of the AltUI graphical user interface for openLuup.

      and

      Me:

      Who created of the AltUI graphical user interface for the home automation system Vera.

      Names two different people - mmmm.

      Regardless very impressive - give it a few more years.

      General Discussion
    • Short survey

      P

      Hi,
      I am a student and recently i am working on smart home project and writing a seminar paper about the way users handle and manage IoT devices. I you have 3 min, please fill below survey. Its really short.
      Thank you in advance, I really appreciate everyone's help.

      General Discussion
    • LibraSun's Dashboard Apps Roundup 2023

      LibraSun

      For what it's worth, I've been putting the finishing touches on a much-updated version of my DP Apps spreadsheet -- specifically intended for HE users, at least for now -- and invite you all to take a gander http://bit.ly/hedb23 at the PDF one-page version.

      Corrections and edits welcome (esp. for the HOMEKIT column, just added yesterday)! Thanks in advance, especially because I'm not a big dashboard user myself, but somehow accepted this role as "keeper of the list" as it were.

      General Discussion
    • Separate switching bulb in one ceiling light

      P

      Hello guys,

      I would like to achieve two different things with lights, but I am not sure it could be done. I am starting with smart things, and I am far from any electrician knowledge, wo any help is really appreciated.

      I have dumb switches in my hall, controlled from 3 places. I understood that installing one smart module before first switch will make them "hybrid", both smart controlled and dumb controlled.

      I would like to buy ceiling light with two bulb sockets. What I would like to achieve is I would like to have one bulb for normal daily usage (lets say cold white full brightness), and second for night time (aprox from 10pm till morning) with some red/orange - minimum brightness.

      So question are:

      Is there a way to keep both bulbs turning-on separated? So only one will be on during day, and then only second during night?

      And could that be done with pressing dumb switch? What would I need to achieve it? (maybe another module into the ceiling lights)

      Thank you in advance

      General Discussion
    • How to reset kwh

      B

      Aften some testing I watt to clear KWH how ?

      Regards Bjarne

      General Discussion
    • Need help in finding the right smart switch for my kitchen lights

      M

      Hello,
      I have a kitchen light that can be controlled by two switches, using either to turn it off or on. I have been slowly changing things over to be a smart home but this is the first switch I am attempting to install.
      I am in a double wide modular home (mobile) that was built in 1994.
      At first I thought I would need a 3 way switch but when taking the normal switches apart I realized that was incorrect because the wiring on my switches are different than anything I could find online.
      For one a 3 way smart switch requires 5 wires and there are only 2 wires going into the primary switch with 3 wires going into the secondary switch from the primary switch (at least I think the 3 wires connect the two switches together). Images will be attached of the wiring.
      There are two wires (one black and one white) going into the first switch and 3 wires (black, white, and red) going out of that and into the second switch (I assume). The odd thing is the red wire going to the second switch is connected to the white wire going into the first switch and the white wire going into the second switch seems to be a bridge wire or a traveler wire. Not exactly sure. You will see what I mean in the images.
      I need to know what kind of smart switch I can use in this set up with one remaining a normal switch.
      Note that for some reason the images got switched around when uploading them. The image with 2 wires on one side and 3 on the other is what I think is the primary and the image with just 3 wires is the secondary.
      Primary.jpg Secondary.jpg

      General Discussion
    • OT: Universal Remote

      CatmanV2

      You lot are more likely to have a view than most I know. Our much used Logitech Harmony is (not so) slowly dying.

      And Logitech have discontinued the entire line.

      And no one else appears to be making something similar.

      Was going for a Sofabaton X1, but no numeric keypad. Sofabaton U1, but no favourites.

      Anyone got suggestions?
      Needs to have those features, oh and not be only a phone app.....

      C

      General Discussion
    • The Home Automation Controller Pyramid

      rafale77

      Since one member asked at one point about the "front end" and "back end", I drew this showing the controller from the base to the tip along with what I have found to be the best options from my testing. Almost every controller will try to integrate all elements, especially commercial ones but... they all have strengths and weaknesses so if one can have a medley of the best ones...

      Screen Shot 2020-05-14 at 07.11.06.png

      General Discussion
    • Thread removed - why?

      Black Cat

      I was just going to add my support for a Update Button for the bare bones version of MSR and find the thread has been removed.
      I'm wondering what was so provocative that required it's removal?
      Have we become as paranoid as an owner of another forum?

      Anyway +1 for an Update Button.

      General Discussion
    • 3-way smart switches in separate buildings.

      D

      So, I think I'm in a bit of an unusual situation. I work at a camp & retreat center that has wifi throughout. I want to put a few switches in the office that can control outdoor lighting throughout the camp. We currently have switches in each of the buildings, but it is a particularly frustrating job to get all the lights on in the evening when it is brutally cold out or we are short staffed.

      Most of our staff is not very tech savvy (my boss literally has his wife print out his emails for him each day!!!) so, I'd love to avoid having to set up any sort of raspberry pi or new phone app.

      Is there type of 3-way switch that can connect to the wifi, turn on a light in another building AND turn on an indicator light in the office, without having any sort of wire running between the buildings? Hopefully looking for a simple solution without breaking the bank too.

      I greatly appreciate any input that you can give. Thank you!

      General Discussion
    For those who registered but didn't received the confirmation email, please send an email to support@smarthome.community with the email you used

    Solved Looking for ideas on how to implement an automation.

    General Discussion
    5
    17
    312
    Loading More Posts
    • 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.
    • R
      RogerO last edited by

      Hello,
      Looking to all the dev's and tinkerers on this community for ideas on how to implement a solution to my problem. Kind of a long intro, sorry.

      Problem statement:
      I have a geothermal heat pump that has a loop that is slightly undersized. During the cold weather months in the Pacific Northwest (one or two months of the year), the loop can get below 32 degrees. If it goes on for a few days, it can generate significant frost heaving in my yard and under the flagstone deck, Actually fixing the issue is cost prohibitive.

      Current mitigation:
      I have DS18B20 tied into Home Assistant and monitoring the temp of the fluid coming out of the loop and if it drops below 35 degrees, MSR triggers a Fibaro Implant to add a resister into the external temp circuit and fool the Venstar to think the outside temp is below 32 degrees and issue a Heat Pump lockout and switch to AUX heat. While this is working fine and the AUX heat is only coming on once or twice a day, I would like to simplify the setup so it runs on something other than HA and MSR. I think they are overkill for my issue. Also want this to be independent of anything else in the house so it can stay behind if I am not around to maintain.

      I only have two inputs and one output:
      Inputs: Loop temp, Furnace running
      Outputs: Switch relay to drop resistance to external thermostat connection on thermostat.
      Logic is super simple:
      If temp is below 36 degrees and furnace is running, turn on relay
      If furnace stops, turn off relay.
      I am sure even I can figure that out on Python.

      Trying to determine the best platform for a set it and forget it black box that works with as close to zero maintenance as possible.

      Options I have thought of are:

      1. Pi zero with a GPIO controlled relay
      2. ESPHome (Not very knowledgeable about that platform, but willing to explore)
      3. Arduino
      4. Anything anyone else suggests

      Any ideas are appreciated.

      toggledbits 2 Replies Last reply Reply Quote 0
      • toggledbits
        toggledbits @RogerO last edited by

        @rogero Having owned and operated a commercial data center, when things needed to be uber-reliable, we ditched the PLCs and went straight to relay logic. There's no school like the old school.

        Since your heat pump is likely already making 24VAC for its controls and the thermostat, I'd go with that as a design voltage. A thermostatic switch can close and power a relay that closes the resistor into the external temp circuit. Something like this:

        ee405792-1144-420e-a639-ad8969f4720a-image.png

        I've shown a Sensasys 2511L007-2132 here, which is normally open and closes below 35F, to control the relay coil. The relay is a simple SPDT type (C form), easy to find in 24VAC.

        Assuming I've understood your use of the resistor correctly, in the circuit as shown, one leg of the temperaure sensor is wired to the common contact of the relay. When the relay is de-energized (temp switch open), the temperature sensor is passed through (NC contact). When the temp switch closes and the relay is energized, the resistor is put in series with the temperature sensor (resistance increases) via the NO contact.

        Since it helps to know what things are doing without dragging out your meter, I recommend getting a relay with a built-in LED or mechanical indicator so you can see when it's energized (or not). Some also have test buttons to close the relay mechanically. Such a beast is this (there's also a socket for it to make wiring easy, highly recommended).

        Sometimes the best smarts are the dumbest.

        Author of Multi-system Reactor and Reactor, DelayLight, Switchboard, and about a dozen other plugins that run on Vera and openLuup.

        1 Reply Last reply Reply Quote 1
        • therealdb
          therealdb last edited by

          This is probably doable with a thermostat as well, maybe the ones you could find for refrigerators, that kicks in every time the temperature goes below a certain level, to power a motor, and stays on unless the temperature is lower than your threshold.

          --
          On a mission to automate everything.

          My MS Reactor contrib
          My Luup Plug-ins

          1 Reply Last reply Reply Quote 1
          • toggledbits
            toggledbits @RogerO last edited by toggledbits

            @rogero Had another though about this... since the thermostat is signaling the heat pump to use compressor or aux heat, manipulating those signal wires directly, rather than "fooling" the thermostat wire a resistor on the temperature sensor, is likely a better option.

            I wrote the Venstar ColorTouch driver for Vera and Hubitat, so it's the model I'm most familiar with, so I'll base the rest of this on that model (can be modified as needed for other models if they work differently). The ColorTouch's will use W1/O/B to signal heating or cooling, Y to run the compressor, W2 to call for aux heat, and G to run the fan. As usual, R and C are 24VAC supply and return.

            All we need to do is activate the W2 (aux heat) wire instead of the Y (compressor) wire when the temperature is below 35F. That can be done like this:

            4b7f7ca1-9431-45d6-8aa2-f0aaafecc660-image.png

            In this version of the circuit, if the temperature is above 35F, then if the Venstar calls for heat by its Y connection, the relay is inactive so the Y (compressor call) passes through to the heat pump. If the temp is below 35F, when the Venstar calls for heat, the relay is activated, and the Y signal from the thermostat is rerouted by the relay contacts to the W2 (call aux heat) wire to the heat pump, so even though the Venstar is calling for compressor heat, the heating unit will see a call for aux heat.

            This is much simpler wiring, too. The relay can be mounted inside the heat pump enclosure next to the control board, and all of thermostat wires come in there anyway so they are easy to intercept and connections will be short and sweet. The snap disc switch can be mounted anywhere (i.e. epoxied to the loop output plumbing) on the end of a long wire pair (I didn't draw in a fuse on that circuit, but probably a good idea). Other than the override from compressor to aux, it does not interfere with the operation of the thermostat.

            Author of Multi-system Reactor and Reactor, DelayLight, Switchboard, and about a dozen other plugins that run on Vera and openLuup.

            1 Reply Last reply Reply Quote 0
            • R
              RogerO last edited by

              Thanks Patrick and theraldb for your input. The issue I have is that the fluid in the loop stops circulating as soon as the furnace switches to AUX heat. In Patrick's system (either version) the furnace will switch back and forth between HP and AUX several times in one heating cycle. I know because I originally had a thermistor attached to the loop pipe inside the cabinet and connected to the external thermostat connections on the thermostat. So I do need a rudimentary logic engine of some sort.
              The MSR logic is this:
              If temp is below 36 degrees and furnace is running, turn on relay
              If furnace stops, turn off relay.

              Once the relay trips is has to stay tripped until the heating cycle is finished. I am sure that could be accomplished with relays but I really don't want to muck around inside my heat pump. I already made a stupid mistake with the Venstar 7900 that fried the external temp measuring circuit and had to replace it. (if anyone needs a nice T7900 that doesn't have the external temp circuit but otherwise works fine, let me know)

              toggledbits 1 Reply Last reply Reply Quote 0
              • toggledbits
                toggledbits @RogerO last edited by

                @rogero Here's a version that latches on once tripped and resets itself when the thermostat stops calling for heat.

                b5644885-e924-4875-9e3c-ab894d07636e-image.png

                In any case, this was a fun distraction. And really, this is minimal mucking. I know it looks daunting, but probably the worst you can do if you screw it up is (a) it doesn't work right, or (b) you blow the cheap 3A fuse on the 24V circuit in the unit (just replace it). If you've blown a thermostat with the resistor version, you've already done worse and more expensive than you are likely to do with this.

                You can do this simple logic in an ESP32 or ESP8266 quite easily. The problem you always have with such things is getting them powered. You usually end up with a wall wart that's prone to failure. And since the micros are 3.3V volt with low current handling on the I/O pins, you need an interface to drive a relay (more parts or a board that carries both the I/O interface and relay), and you need some kind of enclosure to mount the pieces in, connectors to bring the wires to, etc. IMO, it quickly becomes more complicated than the relay alone. But for sure, you have to what's comfortable for you.

                Author of Multi-system Reactor and Reactor, DelayLight, Switchboard, and about a dozen other plugins that run on Vera and openLuup.

                1 Reply Last reply Reply Quote 0
                • R
                  RogerO last edited by

                  I like that design. Actually don't even need to muck around inside the HP. Can intercept the thermostat wires where the come into the furnace closet. need to measure the pipe diameter in the HP and see about getting one of these. http://senasys.com/product/2570l211

                  Thanks,
                  Roger

                  1 Reply Last reply Reply Quote 0
                  • toggledbits
                    toggledbits last edited by

                    They sell that temperature switch on Amazon.

                    Author of Multi-system Reactor and Reactor, DelayLight, Switchboard, and about a dozen other plugins that run on Vera and openLuup.

                    1 Reply Last reply Reply Quote 0
                    • Elcid
                      Elcid last edited by

                      Hi, would it not be simpler to add a second external thermostat on the return loop, which mimics ( connects to same wires) the external stats functions. So if loop goes below set point it switches to aux heat

                      1 Reply Last reply Reply Quote 0
                      • toggledbits
                        toggledbits last edited by

                        Depends on what you mean by simple. Since he's measuring the temperature of a water loop, it would require a temperature sensor external to the thermostat on (attached to) that plumbing, so right there, you've reduced the number of available thermostats for the job to those that support external sensors, and that remaining set is likely a bit costly. And you still have to get 24VAC power to that thermostat. Still wiring, really all the same wiring, in fact. An expensive sensor and relay with a front panel, is all a thermostat is, so on net, I think you're paying a lot for a UI you don't need.

                        Author of Multi-system Reactor and Reactor, DelayLight, Switchboard, and about a dozen other plugins that run on Vera and openLuup.

                        1 Reply Last reply Reply Quote 0
                        • therealdb
                          therealdb last edited by therealdb

                          I don't know in US, but here in Europe mechanical thermostats are quite common and very cheap (I'd say around 20/30 Euros). They usually support external contacts, as in a refrigerator, and are like the picture I'm attaching:

                          8ee69923-e7ef-4683-85c3-dbd0c31c92d1-image.png

                          --
                          On a mission to automate everything.

                          My MS Reactor contrib
                          My Luup Plug-ins

                          1 Reply Last reply Reply Quote 0
                          • Elcid
                            Elcid last edited by Elcid

                            There are plenty of 24v thermostats with remote sensors here in UK (about £30). The OP wanted "Trying to determine the best platform for a set it and forget it black box that works with as close to zero maintenance as possible."!

                            So my thinking is thermostat in tandem with external sensor, A little wiring job done. You could also probably use a shelly 1 with temp sensor addon if you want feedback.

                            akbooer 1 Reply Last reply Reply Quote 0
                            • akbooer
                              akbooer @Elcid last edited by

                              @elcid said in Looking for ideas on how to implement an automation.:

                              You could also probably use a shelly 1 with temp sensor addon if you want feedback.

                              Now you're talking! 😉

                              1 Reply Last reply Reply Quote 1
                              • R
                                RogerO last edited by

                                Appreciate all the discussion. I like Patrick's third diagram, however, looking at discs available I haven't found any with a 5/8 inch diameter connection. Additionally, they are not super accurate according to reviews on Amazon. I might use an ESP32 board with a DS18B20 probe and a DPDT relay in place of the snap switch unless I find one available in my search.

                                1 Reply Last reply Reply Quote 0
                                • Topic has been marked as solved  R RogerO 
                                • R
                                  RogerO last edited by

                                  So, I have looked into the snap disk thermostats that are shaped to connect to a pipe and found, for the one that meets my specs, that the minimum order is 100 units. Additionally, comments in the interweb indicates that they are not all that accurate. Have been thinking about my design and have come up with this.

                                  I plan to connect a 24VAC to 5VDC step down buck converter to the Venstar common and Venstar Y wires as shown in Patrick's second drawing. Using that to power an ESP32 board connected to a DS18B20 sensor and a relay controlled by GPIO on ESP32.

                                  Logic on this design is pretty simple: Monitor loop temp and switch via relay to aux heat source when temp falls to trigger temp.
                                  Remain in AUX mode until thermostat shuts off and powers off ESP32.
                                  Next time furnace starts, relay defaults to Heat Pump mode until temp drops to threshold again.

                                  Questions for those of you with HVAC and ESP32's:

                                  1. Will the 24V AC powering the thermostat supply enough power to run the ESP32?
                                  2. Are the ESP32's able to withstand multiple power cycles without getting corrupted?

                                  Input's to my design are welcome.

                                  1 Reply Last reply Reply Quote 0
                                  • toggledbits
                                    toggledbits last edited by

                                    The typical fuse on 24VAC control circuits in residential HVAC systems in North America (lot of qualifiers there, sheesh) is 3A, so you're good. I don't think the power cycling will be a problem for the ESP, but YMMV on your buck converter.

                                    Author of Multi-system Reactor and Reactor, DelayLight, Switchboard, and about a dozen other plugins that run on Vera and openLuup.

                                    1 Reply Last reply Reply Quote 0
                                    • R
                                      RogerO last edited by

                                      Thanks, at 4 for $15, I can replace them cheap.

                                      1 Reply Last reply Reply Quote 0
                                      • First post
                                        Last post

                                      Welcome. If you’d like to participate in the discussion, rather than just read, then you can join the forum. As a member, you can interact with others here to share your experience and ask the questions you need answered.

                                      Powered by NodeBB | Contributors
                                      Hosted freely by PointPub Media Communications Inc. | Contact us