-
Platform information:
- Hardware: RPi2B
- Openhabian, updated to 2.5M~S1710-1
- Also Sonoff Basic with Tasmota V6.6 running
-
As per the subject. How much can be done using PaperUI?
*Please, no comments about OH V1 bindings. Also no comments about text files unless there is ABSOLUTELY NO WAY to achieve without creating a text file.
- Goal: Create a single switch that can be turned on and off remotely and a rule to turn the switch off at a given time.
Time of query: October 2019
Actions so far:
-
Download disk image and write to Micro SD
-
Insert Micro SD and boot RPi
-
Point browser at RPi and select “Standard” setup
-
Opened logs and made SMB connection from PC
-
Made terminal connection to RPi
-
Ran openhabian-config
-
Performed “02” Upgrade System.
-
Performed “40” , “41” to choose Release version
-
Performed “10”, “11”, “12”, “13”, “14”
-
Now into PaperUI: Turned Item Linking to Simple Mode
-
Installed MQTT Binding (2.5.0 Snapshot)
-
Installed Network Binding (2.5.0 Snapshot)
-
Installed MQTT Broker Moquette (2.5.0 Snapshot)
-
Went to Inbox and searched for new things and found:
MQTT Broker:System MQTT Broker:embedded-mqtt-broker
MQTT Broker:System MQTT Broker:MQTTBridge -
Added both as “Things”
-
Used an app, “MQTT Explorer” to confirm that the broker is operating and that I could control the Sonoff Basic:
Topic: cmnd/MBRLight/ payload of 0/1
Topic: stat/MBRLight/RESULT
Topic: tele/MBRLight/State -
And now to create an interface for my iOS device . . .
*** I assume I have to create a sitemap, but how do I link that to the items I have created in PaperUI?***
Thanks to comments below, it appears clear that the GUI root ends here and we are back to text files.
Notes:
A. The words between “sitemap” and “label” ARE the filename for the sitemap.
B. How to find the mqtt topic??? I found no documentation, but after some random clicking around, do the following in Paper UI:
i) Click on Configuration
ii) Select Items
iii) Click on the notepad (?) icon to the right of the item
v)et wala! Useful information is copied to the clipboard . . .
mqtt_topic_b658979e_MBRL
vi) Which finally gives me something I can put into the sitemap.
My sitemap file looks like this:
sitemap home label="Home" {
Switch item=mqtt_topic_b658979e_MBRL label="Master Bedroom"
}
- “Automation”
Hopefully back to GUI here.
In Paper UI -went to Add-ons -> Misc and installed Rule Engine (Experimental).
After clearing the cache in my browser and reloading PaperUI, I could see a “Rules” menu item on the left hand side.
Clicked the “+” icon and presented with:
(Very Promising)
-
This link assumes text files.
I found Rich’s documentation here -
So following Rich’s instructions . . .
When:
Then:
“Publish an MQTT message” (seems reasonable as that is how the light is controlled)
POW! I seem to have run out of documentation or even a clear way forward.
- Name and Description seem to be editable, but not sure why I should. Select thing gives me this dropdown:
And again, my carer has to wipe the drool off my chin. . .Seems I should be using a Broker item that is the Bridge as the Bridge connects OH workings to the actual Broker???
So I pick the first item in the dropdown and click OK. And then a tick leaving me with this:
The play button runs the rule and the logs confirm that the rule ran:
2019-10-08 07:32:47.630 [.event.RuleStatusInfoEvent] - 1972dda1-f4c1-4d03-b322-83c8f0c0851b updated: RUNNING
2019-10-08 07:32:47.637 [.event.RuleStatusInfoEvent] - 1972dda1-f4c1-4d03-b322-83c8f0c0851b updated: IDLE
But of course nothing happened because the rule did not know about the Item to be controlled.
Question: Is that the state of the ERE as of October 2019?
I’ll answer myself here . . .
-
A new “then”
Use “send a command”
Under Configurations, select the item (Master Bedroom Light)
Select the Command from the dropdown: OFF
OK
Big blue tick
Run the rule and the light goes offA! maze! ing!
Conclusion:
- It is in fact possible to use only a GUI to create an MQTT connected item and then a rule to turn it off at a selected time.
- You still have to create a text file sitemap if you want to use something like the iOS OpenHab app.
Many thanks to those who contributed here and of course to the developers. The GUI does not make Home Automation simple enough for non-developers like me, but it IS getting to the point where I could run an introduction session (now) for newbies on this Case Study in less than an hour and leave them with a working system.