-
Aften some testing I watt to clear KWH how ?
Regards Bjarne
-
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) endMe:
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) endWhat??
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.
-
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. -
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 -
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
-
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...
-
-
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!
-
I have a X10 wall switch system and I want to get rid of it. What would be the easiest transition to something more modern and easy to use with either wifi/homekit capabilities? My current X10 controls 3 zones in my bedroom. All zones are dimmable.
Zone 1 is 4 canister ceiling lights. LED bulbs
Zone 2 is 1 canister ceiling lights. Halogen Bulb
Zone 3 is 1 canister ceiling lights. Halogen Bulb
I have an old plug-in remote from Radio Shack and a wall switch with 3 buttons, each controlling one zone. (images attached)
My wall switch has one two wires from the wall. One black, one white.Is there any solution easy to install without the need of an electrician? Thanks for any feedback.
Starting with smart home development
-
Hi,
I hope this is the correct place to ask. I wanted to start with developing smart home systems where I use a raspberry pie as a server and communicate through a phone or tablet.
But I do not know where to and how to start, I have knowledge in developing Web Application, Java and a bit react native.But which Development Language is good for smart home development? Would it be possible to achieve smart home projects with Webapplication and smarthphone app if they communicate with the same server?
Which additional knowledge do I need except development language? I looked on the internet a bit, but kinda got lost with all the information in it right now about smart home.
-
Are you looking to implement a smart home as a user, or learn about developing a smart from (either from scratch or as developer)?
Welcome BTW!
C
-
Hi what do you mean with "developing a smart"? I wanted to learn how to develop smart home systems but with my own application and not predefined ones.
For that I wanted to learn which language would be prefereable for smart home systems, and which additional skills do I need? For example is networking needed or anything else like that.
-
It's a big question you are asking here and you seem to want to start from scratch.
My question to you is why? Some of your ideas have been explored and executed for years and there are also already commercial offering in that direction with various levels of success.
I will give you just my opinion:
Development cycles for me go in this chronological order:- Make it work (design)
- Make it reliable (debug)
- Make it fast and efficient (optimize, often skept these days)
Now with more freed resource, you can have new ideas and repeat the cycle.
What language you want to use is up to you. There is no right or wrong answer. It ranges from Java/JS on NodeJS to Python to lua to C. There are examples of all of them and it is all a matter of taste and support.
JS example: iobroker
Python: Home Assistant
lua: openLuup
C/C++: many others mostly commercial solutions.The raspberry pi with a web server is one of the most common platforms and a good, but not great place to start: As you grow your system beyond the phase 1 of "Make it work", You may start finding limitations of capability, reliability and efficiency.
Also, the mobile app ideas are pretty common but... I am partial to eliminate them as much as possible because there are too many of them already and ideally, for the sake of efficiency, you would not need them if the home was ultimately "smart". Any configuration would have to be done on the server but mobile apps would be too limiting/small to handle the complexity. I see the mobile apps as a patch/addition maybe temporary convenience and not anything I would base/develop my system around. I am trying to eliminate the need for them and have been pretty succesful. If you need a dashboard, it can be done through a mobile page on the webserver.
-
@rafale77
I wanted to make this commercial so start doing business with it, thats why I wanted to implement my own systems. What would you recommend insteat of a raspberry pi? And what would I need alongside development? In order to achieve what I want ? How could I make my raspberry pi, smartphone app and for example a door lock communicate with each other? Would that be
Networking?What would be alternatives to control the smart home systems? if not by phone
-
-
So you mean like use a webapplication which communicates with the server and is just displayed on the phone/tablet right?
My biggest question is which skill I need to learn for comunication between the devices is it Networking or anything else?
-
My smarthome system has very little interaction with my phone/tablet except for the localization and voice control. I use no apps for these. In case of other failures only do I need a display but this can be done through a web browser on the mobile device though I use Homewave for convenience. Under normal conditions, I would not need any display on my phone or tablet.
For device, you can look at nVidia's Jetson or celeron based mini PCs. Skills you need are both around networking and also the various wireless stacks and APIs for smarthomes: Zigbee, Zwave, Thread. You could also just stick with wifi devices which seems to be the trend lately but I see this as less secure, more cloud prone, less efficient but more convenient.
-
@rafale77
Hey thanks you helped me a lot I at least am a bit smarter now
I have just a few more questions haha if I may.- What are wifi stacks?
- And do you know which skill is needed to assembly your own smart device? I would think a small pc like raspberry pi or an alternative with modules like wifi, bluetooth etc right?
-
wifi stack is a standard (802.11a/ac/ax) and you probably don't need to learn much about it. The wireless stacks I was speaking of were the others: zwave and zigbee in particular. For wifi, devices usually have a local API you can work with.
I don't know how to answer your second question... You can buy these all made and use USB modules for them.
-
Thanks for the answer you really helped me out
Is it ok to contact you if I have further questions?
-
You are welcome. Not sure if I can answer all of your questions but it doesn't cost anything to ask. This forum has a lot of folks who started with a commercial solution which ended up being a dead end and decided to go off on mostly open source platforms, many developed, discussed and shared here.
-
@rafale77
Thanks I will keep that in mindOf course it is never guaranteed to succeed but trying is something important I think
-
Do not underestimate the amount of effort and time this is likely to take... especially when you get a few users on board.