Client for the automation software openHAB.
ibaton / 3house Goto Github PK
View Code? Open in Web Editor NEWClient for the automation software openHAB.
License: Eclipse Public License 1.0
Client for the automation software openHAB.
License: Eclipse Public License 1.0
Client for the automation software openHAB.
Hello,
I am trying to do this user customization profiles in 3House.I successfully added to menu item for Add profiles in application,but doesn't work the menu item and doesn't show the menu icon .I creating the menu item like this.
When I click the menu item "Add Profiles" it will show error is 3House has been stopped.I written the menu item code in Main Activity.java like this
.
How to open the another Activity layout while click the menu item in 3House.The activity name is "Add Profiles" like this
.Please help me...
Thanks,
Amar.
There are two SitemapFragment classes, and classes with Sitemap in the name do not generally clarify if they're to drive the UI for interacting with a sitemap, to choose a sitemap in settings, etc.
I have some Switch
items, that only have one specific function, instead of multiple or the default OnOffType
switch type:
default.sitemap
Switch item=devices_leroy mappings=[OFF="Alles Abschalten"] visibility=[devices_leroy>0]
Those sitemap entries are completely hidden.
The sitemap entries should be shown and should look like a button instead of a radiobox.
The button should clearly indicate that it is still active (like an enable radiobox stays enabled)
It should not be "unpressable".
We can discuss, how we can show that the button is pressen. I would think about letting it look like "pushed in", but in flat design this would not fit.
If a row has a single tappable item in it, make the whole row tappable instead.
The rows here with a ">" icon in them are only tappable on the icon. The entire row should respond to a tap. The same would be true of rows representing binary switches.
Things like sliders would be exempt from this change.
Hello,
I need to create a "Add Profile" button in layout of item_sitemap.xml like this
When user wants to adding a new profile's like "Home,Day,Night...etc".When user press the "Add Profile" button open the another layout like this
The user enter the profile's.The profile's save under the "Add Profiles" in layout of item_sitemap.xml.like this
The user pree the "Home" profile, it will open the sitemap home page like this
I want to do these tasks in app itself.Then,How to do?. I easily created a "Add Profiles" button but where i did write the button code in 3House.It's user customization profile's. For example user going to outside.The user already creating profile name as "Away",the user press the "Away" in that what are the selected items to be activated at that moment.How to do this task in 3House.Please help...wait for your response.
System Environments:
Operating system: Fedora 22(64 bit).
Android Studio:Android Studio 2.0 beta6.
Java:Java 1.8
Thanks,
Amar.
Should create a sitemap with every possible scenario in it.
Useful as coverage test.
Would be awesome to have this hosted somewhere in the feature.
I've got a sitemap with several groups for all the rooms in the house and so on.
No matter which of the groups i choose in the current release, it always fails with error "Lost connection to server". Tried a couple of times with different networks (VPN, Wifi at home, ...) - always the same.
Implement Setpoint widget
What:
Display graphs widgets which are interactive.
Show data more precisely.
How:
Some nice Graph library.
Data from Habmin.
If there is a Selection item on the sitemap, it instantly sends a command to openHAB with the current selection. Even if it was already set.
Selection items should only send commands after a selection has been done (e.g. closing the dropdown)
treehou.se.habit.core.db.StateDescription
Hello,
We need to provide a options to user,that option name is "add profiles". How to make the this kind of activity in 3House.I want to do the task in app itself.In previous question showing the some screen shots,the user creating the own profile in application. The user creating a profile name is "Day",the profile name saved under "Add Profiles". The user click the "Day" it's open the Sitemap's .At that time user selecting the items and save it in openhab sitemap server.How to save the selected items in openhab server.The selected items not able to activate at that moment.When user click the profile name:"Day" at that only activate the selected items.
Ex: Suppose we have 4 items (1 bulb, 1 fan, 1 door, 1 window)
Profile Day: bulb => on, fan => on, window => open, door => close
Profile Night: bulb => off, fan => off, window => close, door => close
Thanks,
Amar.
The feature added in #31 causes the Switch (Button) to send its command when it is rendered in 3House.
This behavior clones the issue from #22
The button is only pressed when being pushed by the user
This may happen, when Switch is already in its state, the mapping would show. For Example:
OFF
of the Switch Item devices_turn_off_all
OFF
State and sends command (but should not!)When using 3House over a https connection, which is secured with a username and password (http basic auth from openhab), charts are not working, because the request is faulty.
This is what openhab logs:
2015-06-14 23:24:29.173 [WARN ] [.io.net.http.SecureHttpContext] - authInfos '�)^��q���"Č' must contain two elements separated by a colon
Other items work fine.
To few icons to select for controllers.
Should modify the cells to provide more.
Graphs are empty when I use mysql persistence.
Request log when accessing from web browser (chrome):
127.0.0.1 - - [26/Aug/2015:19:18:11 +0000] "GET /chart?items=Temperatura_Cyrkulacja&period=D&random=1&service=mysql HTTP/1.1" 200 10020
Request log from application:
127.0.0.1 - - [26/Aug/2015:19:16:30 +0000] "GET /chart?items=Temperatura_Cyrkulacja&period=D&random=968512915 HTTP/1.1" 200 2930
Trailing texts falls of when value is in lined in label.
Example:
Text item=sensor_living_room_entry_temp label="Temperatur [%s °C] TV"
Showing:
Temperatur XX.xx °C
Expected:
Temperatur XX.xx °C TV
First run: server setup should have NEXT button, not BACK button
The button should probably change to SAVE when the server setup Fragment is opened via the Drawer.
Hello sir,
we are creating the customization profiles in android studio.In android studio we are adding the some other activity layouts.In android how to store the data and retrived the data,then how to retriveing data pass to MainActivity.What to do things used for this king of work.Any things downloaded for this problem solving. I try do the this activity,but i didn't get the solution.I getting the error Unfortunately,name has stopped, while running the application in android device.In android device how to strore the data in database when click the save button.please help me...wait for your response.
System Environments:
OS:Fedora 22 (64 bit).
JAVA: JAVA 1.8
Android studio: Android studio 2.0(Beta 6).
Tapping a Color item in the GUI presents a color picker, but the current color is not selected by default.
This affects how #24 is implemented.
Should translate the app into German
Both in app and promo text for the play store.
Most people find it nice to have app translated in their own language.
There are as many German users as English users and it would be appropriate to have it translated in both languages.
Go to http://os9rldd.oneskyapp.com/ and start translating
NullPointer in treehou.se.habit.ui.control.builders.VoiceCellBuilder$1, line 41
Happens when clicking on the "button" of a controller inside the app (not a widget).
If I remember correctly i fiddled around with "Voice" commands yesterday, without knowing what I'm doing.
The reason is probably that I didn't configure any voice related stuff in openhab and thus 3House didn't load any items into the controllers items dropdown... so I didn't choose any item and the controller was saved like this (item null).
If you need the full stacktrace, let me know... got a screenshot - didn't want to send it via Google, though.
Search local network for openhab server on init setup and probably action button.
When I run the app on an API 19 emulator, I get this:
java.lang.RuntimeException: Unable to start activity ComponentInfo{treehou.se.habit/treehou.se.habit.MainActivity}: java.lang.IllegalArgumentException: AppCompat does not support the current theme features
I'll see if I can find the root cause.
Of the 20 current Play Store reviews, one 1-star review is by someone with a self-signed SSL cert. Here are guidelines for supporting it. Maybe we can turn that 1-star review into a 5-star review.
Hello,
I need to developing the some new feature in 3House.I create a add profile option to the user.When user create a profiles like"Home,Away,Day,Night".
.
How to implement the this kind task in 3House.Where,I did the changes and writing the some code.
In above screen shot,Whenever user clicking the "Add Profiles" open the another actvity layout.
.
Whenever user create a profiles like"Home,Away,Day,Night",saved under "Add Profiles".like below the screen shot.How to save the user profiles and create a database for user profiles.
.
The user choose option "HOME" having the sitemaps and items.like below screen shot
.
The user enter into the sitemaps and selected some items and saveit at the time not able to activate the items,the user return to the home page like"Home,Away,Day,Night".When user click the Home at taht time only activate the selected items.How to save the selected items in openhab.Then,How did do the this task in 3House.Please help me...wait for your response.
Thanks.
Amar.
We need a system to notify users about breaking or regular updates when moving from a version to another.
Press and hold to remove a server when there are no servers causes a crash on my device. Using latest version from Play store.
Hi,
I need a feature to add custom widgets to group items and trigger the respective commands so that users can have customized profile like "Day, Evening, Away ...". So that I can apply different task at different time by selecting them as shown in https://community.openhab.org/t/different-take-on-client-ui-android-for-now/3561/72.
But it is using the tasker app and instead I want to integrate it in the app(3house) itself.
What needs to be done to build that feature in 3house app ?
Thanks,
Kiran.
The Color Items is capable of more commands than just a HSB color object.
For intuitive usage of lights, we should implement the on/off buttons as well:
There would also be a possibility to send Percent objects to the color item, which could be used for dimming the current color, without changing the color mix. But I think the current color selection implementation works perfectly fine for dimming (outer ring).
I am not sure how we could visualize the two additional buttons without being too obstrusive. We can collect ideas here.
Should translate the app to multiple languages as.
Both in app and promo text for the play store.
Most people find it nice to have app translated in their own language.
Many of the users doesn't have English as their primary language and it would be appropriate to have it translated into multiple languages.
Go to http://os9rldd.oneskyapp.com/ and start translating
Hi,
I have a lot of items (200 almost) and when I try to create a controller button, if I click on "item type" it just shows up an empty combo box. I have to wait a minute and then click to see all the items.
Right now, I'm using OH via internet and I think because of that it is a little slow to load all the items, but it is very annoying to have to wait that long for every new button I try to create.
Can you do some cache of the items list? So that I have to wait that long only for the first button?
Thanks!! I'm enjoying a lot 3house app!!
Hello,
How to create a adding the user profiles in your 3House in android studio.E.g first floor,second floor,add profiles.In add profiles having the user create options,when click the add profiles showing the enter user profile, and save button.When click the save button,that user profile store the under add profiles on the screen.e.g:user profile home.The user profile containing the first floor,second floor widget information.The user selecting the lights,fans.The selected items at that time unable to work,when click the home selected items work properly....how did do the this kind of task.please help me wait for your response.
System Environments:
Operating System:Fedora 22 (64 bit).
Java:java 1.8.
Android studio:Android studio 2.0(beta 6)
When the app (re)starts, it asks again which sitemap to use. As sitemap selection is already available via the drawer, let's re-use the last-chosen sitemap. The user is free to choose an alternate via the drawer menu.
I am trying to do creating a menu items of "Add Profiles" on top of application in 3House.I created "Add Profile" item in site map.xml in res folder mobile directory.The "Add Profile " item code like this
.
The "Add Profile" item unable to work.I did write the Add Profile item code in Main Activity.java
.I also creating a addprofiles class like below screen shot
.When click the "Add Profile" item on top of application,but it will showing the add profile layout.
.Please help me where i write the code for "Add Profile" item in 3House.How to create a database for storing the user profiles.
Thanks,
Amar.
Organize the controller icons into categories.
To make it easier to find the right color, it would be nice to have a small optionbox at the bottom of the colorpicker to enable instant color changes.
Default behavior: send HSB Type when releasing finger. This should be kept as default behavior.
Optional behaviour through optionbox:
I have a hard time fine-tuning the color when I always have to re-touch (and therefore misplace the selection dot).
Relates to #37
Newlines shouldn't appear in strings. Instead, the layout where those strings are used should be changed to make them multiline. Newlines in strings are a problem for translations, since it's hard for the translator to know where the newline goes in the translated string.
Hello,
I want create new button in item_sitemap.xml.How did do the this kind of task in 3House.How to write the button java class,where I write the button java class in 3House.In this task whenever I click the button open the another activity.please reply me...wait for your response.
In order to get repeatable builds with a given version of the sources, it's best to not use wildcards in dependencies.
The current icon is kind of boring.
We should try creating a new one.
Hi,
Please use the GNU GPL compatible license.
http://www.gnu.org/licenses/license-list.en.html
Thanks.
Hello,
In 3house how to create a "rest api's" for user customization profile's.Where I create a "rest api's" in your 3house.The openhab architecture
.
The rest api services where is located in your 3house.how to write the rest api's accessing the user profiles .Where I need to write code for like add profiles button,save profiles,etc.please help me..
Thanks,
Amar.
Hello,
I need to add the user customization profile in your 3House.How to implement this feature.The user entering the application click the sitemaps,it will open the Item Sitemap.I need to add the new button i.e "Add Profiles" under Item Sitemap like below screen shot
.
Whenever user click the "Add Profiles" it will open a another activity layout name is Enter user Profiles like below screen shot
.
Where I need to write code for user customization profiles.
Thanks,
Amar.
The app crashes when I'am loading a page with a Setpoint widget with a decimal step value E.g.:
<widgetId>0002_0_0_1_2_3_4</widgetId>
<type>Setpoint</type>
<label>Temperature</label>
<icon>none</icon>
<minValue>16</minValue>
<maxValue>28</maxValue>
<step>0.5</step>
<item>
<type>NumberItem</type>
<name>NUM_Temperature</name>
<state>21</state>
<link>
http://172.17.2.21:8080/rest/items/NUM_Temperature
</link>
</item>
</widget>
I found the following error in logcat:
11-24 11:40:07.502 E/Communicator(9311): Received page error http://172.17.2.21:8080/rest/sitemaps/default/0002/
11-24 11:40:07.502 E/Communicator(9311): retrofit.RetrofitError: Invalid int: "0.5"
11-24 11:40:07.502 E/Communicator(9311): at retrofit.RestAdapter$RestHandler.invokeRequest(RestAdapter.java:400)
11-24 11:40:07.502 E/Communicator(9311): at retrofit.RestAdapter$RestHandler.access$100(RestAdapter.java:220)
11-24 11:40:07.502 E/Communicator(9311): at retrofit.RestAdapter$RestHandler$2.obtainResponse(RestAdapter.java:278)
11-24 11:40:07.502 E/Communicator(9311): at retrofit.CallbackRunnable.run(CallbackRunnable.java:42)
11-24 11:40:07.502 E/Communicator(9311): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
11-24 11:40:07.502 E/Communicator(9311): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
11-24 11:40:07.502 E/Communicator(9311): at retrofit.Platform$Android$2$1.run(Platform.java:142)
11-24 11:40:07.502 E/Communicator(9311): at java.lang.Thread.run(Thread.java:818)
11-24 11:40:07.502 E/Communicator(9311): Caused by: java.lang.NumberFormatException: Invalid int: "0.5"
11-24 11:40:07.502 E/Communicator(9311): at java.lang.Integer.invalidInt(Integer.java:138)
11-24 11:40:07.502 E/Communicator(9311): at java.lang.Integer.parse(Integer.java:410)
11-24 11:40:07.502 E/Communicator(9311): at java.lang.Integer.parseInt(Integer.java:367)
11-24 11:40:07.502 E/Communicator(9311): at java.lang.Integer.parseInt(Integer.java:334)
11-24 11:40:07.502 E/Communicator(9311): at com.google.gson.JsonPrimitive.getAsInt(JsonPrimitive.java:260)
11-24 11:40:07.502 E/Communicator(9311): at treehou.se.habit.connector.serializers.WidgetDeserializer.deserializeWidget(WidgetDeserializer.java:58)
11-24 11:40:07.502 E/Communicator(9311): at treehou.se.habit.connector.serializers.WidgetDeserializer.deserialize(WidgetDeserializer.java:105)
11-24 11:40:07.502 E/Communicator(9311): at treehou.se.habit.connector.serializers.WidgetDeserializer.deserialize(WidgetDeserializer.java:18)
11-24 11:40:07.502 E/Communicator(9311): at com.google.gson.TreeTypeAdapter.read(TreeTypeAdapter.java:58)
11-24 11:40:07.502 E/Communicator(9311): at com.google.gson.Gson.fromJson(Gson.java:810)
11-24 11:40:07.502 E/Communicator(9311): at com.google.gson.Gson.fromJson(Gson.java:875)
11-24 11:40:07.502 E/Communicator(9311): at com.google.gson.Gson$1.deserialize(Gson.java:128)
11-24 11:40:07.502 E/Communicator(9311): at treehou.se.habit.connector.serializers.WidgetDeserializer.deserializeWidget(WidgetDeserializer.java:69)
11-24 11:40:07.502 E/Communicator(9311): at treehou.se.habit.connector.serializers.WidgetDeserializer.deserialize(WidgetDeserializer.java:105)
11-24 11:40:07.502 E/Communicator(9311): at treehou.se.habit.connector.serializers.WidgetDeserializer.deserialize(WidgetDeserializer.java:18)
11-24 11:40:07.502 E/Communicator(9311): at com.google.gson.TreeTypeAdapter.read(TreeTypeAdapter.java:58)
11-24 11:40:07.502 E/Communicator(9311): at com.google.gson.Gson.fromJson(Gson.java:810)
11-24 11:40:07.502 E/Communicator(9311): at com.google.gson.Gson.fromJson(Gson.java:875)
11-24 11:40:07.502 E/Communicator(9311): at com.google.gson.Gson$1.deserialize(Gson.java:128)
11-24 11:40:07.502 E/Communicator(9311): at treehou.se.habit.connector.serializers.LinkedPageDeserializer.deserialize(LinkedPageDeserializer.java:56)
11-24 11:40:07.502 E/Communicator(9311): at treehou.se.habit.connector.serializers.LinkedPageDeserializer.deserialize(LinkedPageDeserializer.java:18)
11-24 11:40:07.502 E/Communicator(9311): at com.google.gson.TreeTypeAdapter.read(TreeTypeAdapter.java:58)
11-24 11:40:07.502 E/Communicator(9311): at com.google.gson.Gson.fromJson(Gson.java:810)
11-24 11:40:07.502 E/Communicator(9311): at com.google.gson.Gson.fromJson(Gson.java:775)
11-24 11:40:07.502 E/Communicator(9311): at retrofit.converter.GsonConverter.fromBody(GsonConverter.java:63)
11-24 11:40:07.502 E/Communicator(9311): at treehou.se.habit.connector.BasicAuthServiceGenerator$OpenHabConverter.fromBody(BasicAuthServiceGenerator.java:90)
11-24 11:40:07.502 E/Communicator(9311): at retrofit.RestAdapter$RestHandler.invokeRequest(RestAdapter.java:367)
11-24 11:40:07.502 E/Communicator(9311): ... 7 more
11-24 11:40:07.502 D/PageFragment(9311): error java.lang.NumberFormatException: Invalid int: "0.5" Invalid int: "0.5"
Please change this variable to a decimal type.
Retrofit isn't really made for dynamic urls.
Retrofit should be replaced to have one thing less to worry about.
Reports about problem with Switch items with custom mappings.
https://community.openhab.org/t/3house-android-client/176/2
See title
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.