Giter Site home page Giter Site logo

openhab / openhab-android Goto Github PK

View Code? Open in Web Editor NEW
591.0 53.0 318.0 55.63 MB

openHAB client for Android

Home Page: https://play.google.com/store/apps/details?id=org.openhab.habdroid

License: Eclipse Public License 2.0

Java 6.93% Ruby 0.12% Python 0.45% Kotlin 92.50%
smarthome homeautomation openhab java android openhab-client kotlin app

openhab-android's Introduction

GitHub Action Crowdin
Logo
openHAB client for Android

Introduction

This app is a native client for openHAB which allows easy access to your sitemaps. The documentation is available at www.openhab.org/docs/.

Get it on Play Store Get it on F-Droid Get it on GitHub

Features

Demo Overview Widget Overview Main UI

Beta builds

Beta builds are distributed via GitHub and F-Droid. Those builds can be installed alongside the stable version.

On Google Play you can opt-in to get updates of stable versions before others: https://play.google.com/apps/testing/org.openhab.habdroid

Localization

Concerning all strings.xml files at mobile/src/*/res/values-*/

All language/regional translations are managed with Crowdin. Please do NOT contribute translations as pull requests against the mobile/src/*/res/values-*/strings.xml files directly, but submit them through the Crowdin web service:

Thanks for your consideration and contribution!

Setting up development environment

If you want to contribute to Android application we are here to help you to set up development environment. openHAB client for Android is developed using Android Studio.

  • Download and install Android Studio
  • Check out the latest code from GitHub via Android Studio
  • Install SDKs and Gradle if you get asked
  • Click on "Build Variants" on the left side and change the build variant of the module "mobile" to "fullStableDebug".

You are ready to contribute!

Before producing any amount of code please have a look at contribution guidelines

Build flavors

An optional build flavor "foss" is available for distribution through F-Droid. This build has FCM and crash reporting removed and will not be able to receive push notifications from openHAB Cloud.

For using map view support in the "full" build flavor, you need to visit the Maps API page and generate an API key via the 'Get a key' button at the top. Then add a line in the following format to the 'gradle.properties' file (either in the same directory as this readme file, or in $HOME/.gradle): mapsApiKey=<key>, replacing <key> with the API key you just obtained.

Trademark Disclaimer

Product names, logos, brands and other trademarks referred to within the openHAB website are the property of their respective trademark holders. These trademark holders are not affiliated with openHAB or our website. They do not sponsor or endorse our materials.

Google Play and the Google Play logo are trademarks of Google Inc.

openhab-android's People

Contributors

belovictor avatar br3nda avatar cribskip avatar cristiansarac avatar dependabot-preview[bot] avatar dependabot[bot] avatar digitaldan avatar dominicdesu avatar fat-tire avatar felixschndr avatar floriansw avatar hazzeh avatar ibaton avatar jimtng avatar jochen1980 avatar jvitkauskas avatar karafyllidis avatar lolodomo avatar maniac103 avatar mgarciate avatar mherwege avatar mueller-ma avatar openhab-bot avatar renovate[bot] avatar sjowie80 avatar slawekjaranowski avatar sosandroid avatar thomdietrich avatar wborn avatar wiomoc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

openhab-android's Issues

Unbundle Memorizing Trust Manager

Memorizing Trust Manager (MTM) can be used as gradle subproject. There is no need to bundle it, and it's in fact counter-productive given that MTM is a critical part of habdroid's security.

I've started an branch https://github.com/Flowdalic/openhab.android/tree/mtm but as I'm not able to get it building with Android Studio (I do my Android development with Eclipse) the branch currently does not compile.

Would be great if someone from the habdroid developers could take a look.

Monitor state of an item and trigger some action if state changes

What I want to do is simply show the image of a network camera on a wall mounted tablet running habdroid, if the doorbell button is pressed.
I can easily use tasker to create a scene with the cam image and an button to open the door, but the problem is to trigger a task to display the scene on a item state change.
A possible solution would be a tasker plugin which does a long polling request and receives an update if there is a state change. But I think belvictor is not so excited about integrating a tasker plugin in habdroid.
Another solution would be to trigger habdroid through an openhab action to switch to a specific sitemap link, where a webview widget is placed. But there is the problem how to identify the client which should change its display.

I've used an intend, created by tasker, which looks like an discovered NFC tag, to swich to a specific sitemap link. But there is also the problem how to detect the state change of the triggering item.

Polling the state of an item using the REST api is possible but you have to poll the item lets say every 5 seconds or so, which is not the best solution.

Any suggestions?

Connection often only at 2nd attemt

As an, otherwise happy, HabDroid user I experience it often, that the app needs 2 attempts to load the sitemap. I open the app, the indicator tells me it's loading, finishes, but the page stays empty. I then need to click on "Settings" and back to the home screen, to trigger another load attempt, which then succeeds. This happens about 80% of the time. I never need more than 2 attempts to get the sitemap loaded.

Streaming usb web camera to habdroid

Hi guys,
I am trying to stream my web camera to habdroid. I am using a usb web camera and using Yawcam to stream it live using mjpeg. Now i can view the webcamera in my internet browser with no issues at all but when i use habdroid to view the camera the camera comes up saying offline does anyone know what could be causing this issue?
here is my code.

Frame label="Multimedia Widgets" {
Webview url="http://192.168.1.121:8081/" height=20
}

many thanks.

HABDroid can't load charts

Hi,

I have a relatively simple sitemap where I generate 3 charts of different time period and the HABDroid app can't display them. Sometimes it loads one of the 3 images but most of the time it's nothing.

items (relevant part):

Group gPhones
Switch phone_xxx "Phone 1 [MAP(phone.map):%s]" <network> (gPhones)
Switch phone_yyy "Phone 2 [MAP(phone.map):%s]" <network> (gPhones)

sitemap:

Chart item=gPhones period=4h refresh=300
Chart item=gPhones period=D refresh=3600
Chart item=gPhones period=W refresh=86400

In the server's event logs I only see that the HABDroid client re-requests the chart images over and over.

192.168.1.42 -  -  [27/Nov/2014:22:16:56 +0000] "GET /chart?groups=gPhones&period=4h&random=814808101&w=1080&h=540 HTTP/1.1" 200 10667
192.168.1.42 -  -  [27/Nov/2014:22:17:00 +0000] "GET /chart?groups=gPhones&period=4h&random=814808101&w=1080&h=540 HTTP/1.1" 200 10682
192.168.1.42 -  -  [27/Nov/2014:22:16:59 +0000] "GET /chart?groups=gPhones&period=D&random=-2123270323&w=1080&h=540 HTTP/1.1" 200 16096
192.168.1.42 -  -  [27/Nov/2014:22:17:03 +0000] "GET /chart?groups=gPhones&period=4h&random=833497091&w=1080&h=540 HTTP/1.1" 200 10589
192.168.1.42 -  -  [27/Nov/2014:22:17:05 +0000] "GET /chart?groups=gPhones&period=D&random=-1042861998&w=1080&h=540 HTTP/1.1" 200 16084
192.168.1.42 -  -  [27/Nov/2014:22:17:10 +0000] "GET /chart?groups=gPhones&period=4h&random=833497091&w=1080&h=540 HTTP/1.1" 200 10520
192.168.1.42 -  -  [27/Nov/2014:22:17:13 +0000] "GET /chart?groups=gPhones&period=4h&random=833497091&w=1080&h=540 HTTP/1.1" 200 10533
192.168.1.42 -  -  [27/Nov/2014:22:17:13 +0000] "GET /chart?groups=gPhones&period=4h&random=833497091&w=1080&h=540 HTTP/1.1" 200 10533

If I try to enter this URL in my browser it works. The images also load well in the classic UI.

I installed the Android Studio and set it up, tried to run the app in an emulator and I got "java.net.SocketTimeoutException". When I had security ON, then I got "java.io.FileNotFoundException: http://192.168.1.2:8080/chart?groups=gPhones&period=4h&random=660312469&w=1080&h=540" on the client side and I saw that OpenHAB gave 401 Unauthorized to the client.

Log with security OFF: http://fpaste.org/154767/71279731/
Log with security ON: http://fpaste.org/154768/12805214/

I don't program in Java, so I'm quite clueless what happens but hopefully this will be helpful enough to solve it. Please let me know if you need more information.

HABDroid version: 1.5.1.1
OpenHAB version: 1.5.1 on Raspbian

Attila

Can't install habdroid on Android 5 (Nexus 10)

When installing habdroid from the playstore I get an error message with error code -505.
adb logcat gives me:

D/Finsky  ( 5461): [1] InstallerTask.startInstallingGzippedApk: Prepare to unzip org.openhab.habdroid from content://downloads/my_downloads/2005
D/Finsky  ( 5461): [1] 9.onPostExecute: Successfully unpacked gzipped APK to update org.openhab.habdroid
D/Finsky  ( 5461): [1] 1.onPostExecute: Committing session 527175415 for org.openhab.habdroid
D/Finsky  ( 5461): [1] 4.installBeginning: Begin install of org.openhab.habdroid
D/Finsky  ( 5461): [1] PackageVerificationReceiver.onReceive: Verification requested, id = 5
D/Finsky  ( 5461): [1] WorkerTask.onPreExecute: Verification Requested for id = 5, data=file:///data/app/vmdl527175415.tmp flags=18 fromVerificationActivity=false
D/Finsky  ( 5461): [7277] PackageVerificationService.getPackageInfo: Cannot read archive for file:///data/app/vmdl527175415.tmp in request id=5
D/Finsky  ( 5461): [1] PackageVerificationReceiver.onReceive: Verification requested, id = 5
E/Finsky  ( 5461): [1] PackageInstallerImpl.handleCommitCallback: Error -505 while installing org.openhab.habdroid: INSTALL_FAILED_DUPLICATE_PERMISSION: Package org.openhab.habdroid attempting to redeclare permission com.example.gcm.permission.C2D_MESSAGE already owned by com.playmous.godoflight
W/Finsky  ( 5461): [1] 4.installFailed: Install failure of org.openhab.habdroid: -505 null
D/Finsky  ( 5461): [1] InstallerTask.cancelCleanup: Cancel running installation of org.openhab.habdroid
D/Finsky  ( 5461): [1] 1.releasePackage: User=UserHandle{0} released=org.openhab.habdroid

Uninstalling the "God of Light" game solved the issue (my kids are going to hate me for that).

Obviously the openhab developers and the guys from playmous.com made the same mistake: Both Copied the example android manifest snippet from the "Implementing GCM" page into their respective apps. You should change

<permission android:name="com.example.gcm.permission.C2D_MESSAGE"
        android:protectionLevel="signature" />

to

<permission android:name="org.openhab.habdroid.gcm.permission.C2D_MESSAGE"
        android:protectionLevel="signature" />

HABDroid causes massive data volume in background

I just noticed by chance that while I was away from home (and therefore Wifi), HABDroid causes almost 100MB data transfer over 3G. I was hardly using the app actively during this time, so this must have happened in the background.
Even if this were only long-polling requests, the amount of data feels to be too much. Anyhow, I would expect any long-polling activity to be stopped when the app goes into the background.

screenshot_2014-09-03-22-43-06

Made a little changes... how to contribute

Hi all,

This is my first time trying to contribute. I am not very confident. So, I just downloaded the project and made a small changes.
While waiting for user role to be implemented, I made a small changes so that the user can only choose a sitemap that is the same as the username.
I had some idea to made changes to the openhab core, but after I downloaded the program, it's just not even run (too many errors). so, I gave up

is this consider as acceptable contribution or this is something that's not considered as changes?

OpenHAB2 support

Hello,

Does habdroid supports openhab2? According to cloudbees changelog it should but when I installed latest habdroid (20.01.2015 build) and pointed it to latest openhab2 URL loading icon in habdroid is stuck and nothing from my sitemap is being loaded (I've tried HTTP and HTTPS URLs).

Regards

EDIT: Only thing that is probably working is selecting sitemap. I can select sitemap with name "default" but nothing happens after that.

Android notifications for certain events

It'd be nice if it were possible to configure notifications if a certain Item changes to a certain value (e.g. washing machine has finished its cycle).

This would probably require some sort of alert triggers in the openHAB core first (item or widget level conditional alerts (e.g. alert[Light_Switch == true]) because you'd want to configure the logic for such triggers for all clients globally.

At least I haven't found anything that could be used this way in the current documentation. Please correct me if I'm wrong.

Habdroid moving between Local Lan and Public Wan

Hey everyone,
There seems to be an issue with moving from the local Lan to a public Wan (local wifi to 4G network for instance) or the other way around when the habdroid app is already open on my phone.
When you select the open app again on your phone when you moved between networks it shows the spinning wheel but never manages to connect back to openhab. You either need to close the app and start it again or you need to go into the settings menu and exit it again and then it will reconnect.
Would it be possible to fix this because I would like to start using the NFC function in my phone and it would be nice to have an alarm off tag at the door which I can then swipe to turn off the alarm system with my phone. But for that to work it would need to be able to switch from 4G to wifi as my phone will automatically switch from 4G to wifi when I get home.
I opened a discussion about it on
https://groups.google.com/forum/#!topic/openhab/fBZ_rwzqX1g

Thanks

Webview and php site with form posting

Hello,

I'm trying to load an php website into the webview in order to input a pin to arm and disarm the alarm. The php page uses forms and on code input, it submits the form to itself. When submitting the form, the webview gives me this error: "HTTP error 404, problem accessing /keypad.php. Reason: ProxyServlet: keypad.php. powered by Jetty://". This works OK when I open the webview in a browser, directly from openhab, but it does not work in android app. Here is the webview code:

    Frame label="Alarm"{
            Group item=Alarm label="Alarm" icon="lock" {
                    Webview label="keypad" url="http://localhost/keypad.php" height=12
                    Text item=AlarmStatus label="Status" icon="lock"
            }
    }

And here is the php code:
http://pastebin.com/xmsgnMgr

Both the webserver and openhab server are on the same machine.

Selection and Switch (with mapping) don't trigger an update

Hi there!

Selection and Switches with mappings should trigger an update (GET sitemap). Currently one has to reload the whole page (push back and re-select Text Item or Group)

Reproducable:

  • Add Switch (with mapping) or Selection to Sitemap
  • Use mapping=[0="foo", 1="bar"]
  • Create Colorpicker Item with `visibility=[switchitem==0]
  • Use openhab.android to switch the state. The page will not update until you leave and reenter the page.

Sitemap:

        Text label="Lichter" {
            Selection item=AACC_modus mappings=[0="Aus", 1="Farbspiel", 5="Tageslicht", 4="Farbe"]
            Colorpicker label="Eigene Farbe" item=Light_Leroy_LED visibility=[AACC_modus==4]
        }

This works fine and almost-instant in the ClassicUI on the PC. I'm willing to contribute with moderate coding skills, if you can lead me to the right files.

EDIT: This seems to be an Android OS related issue, as this happened in the ClassicUI as well (from the same device). Obviously the device did not receive the changes that were pushed (or broadcasted?) to it. Today it works well. But I restarted the runtime and my Android 4.4.4 device. So I can not really tell the reason. At least more people seem to have this issue.

Will keep track of it and post updates on this.

Error thrown in OpenHABDrawerAdapter.java

Line 90 of the OpenHABDrawerAdapter.java looks like this:
String iconUrl = openHABBaseUrl + "images/" + ".png";

It seems that the actual filename is missing and causing subsequent errors

Habdroid-authentication failed with mobile connection

Hi,
if I use Habdroid with WLAN-connection, everthing works fine. If I'm connected with 3G, I got an error message -authentication failed- or in german "Benutzeranmeldung fehlgeschlagen. Bitte prüfen Sie Benutzername/Passwort".
In my settings I leave openHAB URL empty (as I have read in previous discussions) and only put set openHAB remote URL with "https://my.openhab.org".

Thanks for your help!

Custom notification sound + vibration

Right now HABdroid plays the default notification sound set in the Android device. My phone has the default sound send to none because some other apps also use the default notification sound and don't give you the choice to disable it. Because of that, notifications tend to go unnoticed. Selecting a custom sound for HABdroid and vibration alerts would be a great help!

HABDroid does not upscale images to fit the screen size

My webcam delivers 640x480 pixels, which results in a tiny picture in HABdroid on my FullHD smartphone, see attached image.
HABDroid needs to scale the picture to the width of the screen, just like the Classic UI is doing it.

image

HABdroid installation error -505

PackageInstallerImpl.handleCommitCallback: Error -505 while installing org.openhab.habdroid:
INSTALL_FAILED_DUPLICATE_PERMISSION: Package org.openhab.habdroid attempting to redeclare permission com.example.gcm.permission.C2D_MESSAGE already owned by de.fcbayern.android

After deinstalling the FCBayern App, I was able to install HABdroid.

Maybe it would be better not to use com.example as a package name?

[question] install app on wear

Hello!

I've tried installing the Wear App via Android Wear APK Tools, however, I am unable to get it working. The Tool correctly lists all my apps but no matter which wear*.apk I use, nothing seems to be visible on my watch.

Am I doing anything wrong? Which .apk should I install? (using snapshots from Jenkins).

Also, is there any way to include the wear app inside of the normal .apk to get both installed at the same time?

Cloudbees not working

After the latest commits, there's no Jenkins Builds available.
Errors are not visible.

Only "mobile-debug.apk" is installable, "mobile-release-unsigned.apk" fails to install.

CommandClass THERMOSTAT_SETPOINT (0x43) not implemented since 1.7.0-863

Hello,

after updatin to #863 all my danfoss thermostat are unknown and the temperature could not be read or set. It seems that the command classes are not longer known. The items are look like this one:

Number ThermoBathroom "Badezimmer [%.1f C]" { zwave="9:command=thermostat_setpoint,setpoint_type=1,setpoint_scale=0" }

Following message appears:

2015-02-21 15:17:45.860 [ERROR] [b.z.i.protocol.ZWaveController] - NODE 9: Error deserialising XML file. com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$UnknownFieldException: No such field org.openhab.binding.zwave.internal.protocol.commandclass.ZWaveThermostatSetpointCommandClass.setpointTypes
---- Debugging information ----
field : setpointTypes
class : org.openhab.binding.zwave.internal.protocol.commandclass.ZWaveThermostatSetpointCommandClass
required-type : org.openhab.binding.zwave.internal.protocol.commandclass.ZWaveThermostatSetpointCommandClass
converter-type : com.thoughtworks.xstream.converters.reflection.ReflectionConverter
path : /node/supportedCommandClasses/entry[10]/thermostatSetpointCommandClass/setpointTypes
line number : 96
class[1] : java.util.HashMap
converter-type[1] : com.thoughtworks.xstream.converters.collections.MapConverter
class[2] : org.openhab.binding.zwave.internal.protocol.ZWaveNode

version : 1.4.6

2015-02-21 16:27:48.938 [ERROR] [.ZWaveMultiCommandCommandClass] - NODE 9: CommandClass BATTERY (0x80) not implemented.
2015-02-21 16:27:48.942 [ERROR] [.ZWaveMultiCommandCommandClass] - NODE 9: CommandClass THERMOSTAT_SETPOINT (0x43) not implemented.
2015-02-21 16:27:48.946 [ERROR] [.ZWaveMultiCommandCommandClass] - NODE 9: CommandClass CLIMATE_CONTROL_SCHEDULE (0x46) not implemented.
2015-02-21 16:27:48.950 [ERROR] [.ZWaveMultiCommandCommandClass] - NODE 9: CommandClass CLOCK (0x81) not implemented.
2015-02-21 16:27:48.954 [ERROR] [.ZWaveMultiCommandCommandClass] - NODE 9: CommandClass CLIMATE_CONTROL_SCHEDULE (0x46) not implemented.
2015-02-21 16:27:48.959 [ERROR] [.ZWaveMultiCommandCommandClass] - NODE 9: CommandClass WAKE_UP (0x84) not implemented.

Command sent by Selection when sitemap loaded

Here is a simple example:

String junk {autoupdate="false"}

sitemap demo label="House"
{
Frame label="Information" {
Selection item=junk label="Alarm ready to arm" mappings=[home=home,arm_away=away]
}
}

Immediately upon loading this sitemap in habdroid, the item "junk" receives the command "home".

The web UI does not exhibit this behavior.

Note: Based on some quick testing, the problem does not occur if autoupdates are enabled.

International character support for voice commands issued from habdroid

Hello,

I've tried to use international voice commands (https://github.com/openhab/openhab/wiki/Samples-Tricks#how-to-use-a-voice-command-from-habdroid) with habdroid and it looks like on some point this characters are being incorrectly converted.

Example:

"światło kinkiet koło tarasu"

which in english means some thing like "light sconce near the terrace".

In my rules file I've added logging and in openhab.log file it looks like this:

"12:33:45.488 ERROR o.o.model.script.voicecommand[:83]- ?wiat?o kinkiet ko?o tarasu"

Can you check this?

Regards

On my Gigaset SL930 the app habDroid/openHAB is not shown in Google Play Store

I have a new home phone, which I want to use as remote control for openHAB. Unlike on my other Android devices, the new Gigaset SL930A does not show habDroid in the Google Play Store. On my PC I see the SL930A shown as one of my devices in gray with a message that habDROID is not suitable for this device. I do not see why. It has no mobile connection, but a steady WiFi connection and Android 4.04. more specifications can be found here:
http://www.gigaset.com/en_UK/shop/gigaset-sl930a.html
Can this be solved ?

Gert

Subscript text not rendered properly

I have data for the air quality outside: like PM10 concentration, Ozone levels (O3) etc and numbers are displayed fine as subscript in web browser. I am using O₃ for Ozone.

In the Android application it is displayed raw with the HTML code for that character. I do not want to make special sitemap just for mobile where I will not use special codes

Atmosphere sessions running systems out of memory

hey @belovictor ! can you take a look at the this comment openhab/openhab1-addons#1961 (comment) ? Basically on system where items are changing every second we are running out of memory on the server due to too many atmosphere sessions. I see there was a change to alternate long polling requests, is there another solution? I'm just trying to patch this together until OH 2 comes out and we can switch out atmosphere for something else. Thanks!

Some small features for a wall mounted tablet

For my wall mounted tablets (Android 4.4), which should only be used to control my OpenHab server, I would like to see the following features

  • Fullscreen mode (configurable)
  • A back button which will not automatically close the app, if I use it accidentally in the main screen. I would prefer to have a configuration option to be asked if I will close the app when using back in the main screen
  • A configurable timeout after which the app automatically jumps back to the main screen

For using on my phones it would also be nice to have a possibility to have a line break within the labels.

Dim Display if there is no touchscreen input

It would be nice if there is an option to enable automatic display dimming if the display doesn't receive touch input for a configurable amount of time. If in dimmed state and the display is touched restore to the previous dimming value. This would be usefull if habdroid is used in conjunction with a wall mounted tablet and the 'disable display timer' option to reduce display wear and energy consumption.

HabDroid not avalaible for Tablet - Excite Go

I just bought the Toshiba Excite Go tablet which has the following specs:

•Android™ 4.4, KitKat (running 4.4.2)
•Intel® Atom® Processor Z3735G (2MB Cache, Up to 1.83GHz)
•1GB RAM
•8 GB storage (4 GB usable)
•7.0” diagonal WSVGA screen at 1024 x 600 native resolution
•Wi-Fi® Wireless networking (802.11b/g/n) + Bluetooth® v 4.0

http://www.toshiba.com/us/tablets/excite/Go/AT7-C8

I thought this is a nice & inexpensive display / switch for my (KNX) openHab system.

But when I try to download the habDroid client - the google play store tells me that this application is not compatible with my device :(

Any ideas why this is the case?
Can this be changed to be downloadable via play store?

support multiple openhab server

In case you got more than one openHAB server this app is not very usefull.

I am using a separate openhab server for developing.
It is not nice to change the URL in the settings each time I want to use the other server.

Subscript text

Subscript HTML text is displayed fine in desktop/mobile browsers but not in HABDroid.

This should be rendered as ozone O₃ O & # 8 3 2 3 ; (without spaces)

Group item colorpicker sends 0 instead of choosen value

I did some test with the web gui of openhab and a colorpicker for a groupitem. Everything was fine. Yesterday I want to show this feature to somebody with the HABdroid app and everytime I updated the color over the colorpicker group item the lightbands shutdown. After analyzing the log I saw that HABdroid sends allways a "0" value instead of the choosen rgb value. The rule which controls the single color channels is getting a value of 0,too.
Here is a short part of the logfile:
20:20:04.626 DEBUG o.o.i.r.i.r.ItemResource[:197]- Received HTTP POST request at 'items/Lichtbaender' with value '0.0,0.0,0.0'.

Connection Refused while trying to connecti via remoteURL

Hi Guys,

I have been bashing my head against this for 2 nights and i have done some searching on the issue but cant seem to find a fix.
I have left openHAB URL blank and my remoteURL is set to http://127.0.1.1:8080/. I have also tried using http://127.0.1.1:8080/openhab.app?sitemap=demo but it still comes back saying connection refused. I have also checked that my security settings are turned off (security:option=OFF)
Any ideas to what could be causing this?
Thanks.

support device specific chart sizes

The new chart servlet introdiced in v1.4 can create charts with a custom size (width and height).
Unfortunately HABdroid does not support this, yet.
So the default values from the openhab.cfg are used.
These are very small for current smartphones with resolutions above 720p.

Since the Classic UI doesn't support this either you have to set the default chart size for your pc monitor to a different size, too.

It would be great if HABdroid could request the chart in the best resolution for the used device.

See this post for further information:
https://groups.google.com/d/msg/openhab/smxsHQFTntc/f_WoKnsEaEAJ

Android 4.2.2: Ihr Gerät ist nicht mit dieser Version kompatibel

I just tried to install HABDroid from Google Play Store on my LIFETAB E10312 (Android-Version 4.2.2): Got the message: "Ihr Gerät ist nicht mit dieser Version kompatibel".
Even so the openHAB Wiki page on the Android client claims: "Android app is currently designed for mobile phones and tablets running Android 4.x."

Some issues with Webview on Android

Hello,

I have the issues below with OpenHAB 1.6.1 and HABDroid 1.5.1.1.
Not knowing if they are linked, I prefer to open only one issue for the moment.

  1. Issue with paths:
  • I create a subdirectory under 'webapps' called 'test'.
  • In this directory, I put 2 files:
    • index.html in which I use the line <img src='image.jpg' alt='' />
    • image.jpg

It works asis in a Web browser but not under habdroid where the 'image.jpg' is not found (error 404).

  • I create a directory called 'test' under the main 'test' directory.
  • I put the 'image.jpg' file in it and I update the img src with 'test/image.jpg' (can be indifferently preceded by / or ./).

It works in habdroid and no more in a web browser. Same story with a js file as src of a script tag.
Workaround is to put the linked files in both webapps/<maindir> and webapps/<maindir>/<maindir>.

  1. When using SSL, I receive blank pages in the webview either in local or in remote and with or without authentication enabled.

  2. When using authentication in http (because blank page in https), I systematically get the error 401 either in remote or in local even with the webview url format http://user:password@&lt;openhab_server:port&gt;/webapps/test/
    Note this last format is working with an image (in sitemap) generated by a cgi on an IP Cam protected by a basic authentication.

Many thanks in advance for your answer.

writing nfc tag for a switch crash the app

I´d like to add a new issue to the Android app.
Writing a nfc tag with a toggle switch it force close the app.
Steps to reproduce: open the app, long hold over a switch, popup appear and select toggle, awaiting for tag, trying to write tag , force close.
If you try the same with a group of items (from the demo FF_Bedroom items) it is working with out glitch.
Tested with sony xperia tags http://www.sonymobile.com/global-en/products/accessories/xperia-smarttags/
If a logcat is needed please let me know.
Version 1.5.1
Rom used: CM11
Phone :xperia sp
Thank you

Dimmer item <-> switch widget

Declaring a dimmer item and representing it as switch widget doesn't work well in android app. There are many places in code where item state is directly compared to ON or OFF:

     case TYPE_SWITCH:
     if (labelTextView != null)
     labelTextView.setText(openHABWidget.getLabel());
     Switch switchSwitch = (Switch)widgetView.findViewById(R.id.switchswitch);
     if (openHABWidget.hasItem()) {
     if (openHABWidget.getItem().getState().equals("ON")) {
     switchSwitch.setChecked(true);
     } else {
     switchSwitch.setChecked(false);
     }

while I think it should be

switchSwitch.setChecked(openHABWidget.getItem().getStateAsBoolean());

instead of comparing with ON/OFF.

Microphone widget

Hello,

can you consider adding to habdroid microphone widget which will allow telling commands directly after pressing this widget without entering habdroid app?

Regards

Issue with voice commands (SOLVED)

Hi Guys, I am new to Openhab and i am still learning how to do a lot of things. But one thing i cant get my head around is working out how to correctly code the voice command rules. I followed the wiki and i have wrote it like so.
ITEM:
String VoiceCommand
Switch office (FF_Office, Lights) {hue="1"}

RULE:

rule VoiceControl
when
Item VoiceCommand received command
then
Light_FF_Office_Ceiling.sendCommand(OFF)
end

Now this rule works fine if i tell it OFF it turns my office light OFF but i also noticed that if i say any random word it will also turn it OFF. So i was wondering if someone can show me or provide me an example of how to code the rule properly so i can say "Turn Office Light OFF" and have it switch OFF.
Thanks

Extend HABDroid to support Wearable

The HABWear extension for HABDroid should show the sitemap selected on the mobile phone to which the watch is being connected.
Data between Wear and Mobile is being exchanged through the DataApi provided by Android. The main sitemap is automatically being sent to the DataApi after chosing the sitemap on the mobile.
When starting the app on the Wear this base sitemap is being displayed using the WearableListView layout.
Clicking on an item (Group or Frame) will send a message with the requested sitemap url to the mobile app which download the sitemap and put it on the DataApi. The Wearable gets notified about the new data and will forward the user to the new list with the new sitemap data.

Not all widget types will be supported. At the beginning only Group, Frame, Switch, Door/Window Sensor and RollerShutter will be supported.

With this extension a basic control for OpenHAB should be possible.

Widgets for homescreen

This was requested a couple of times on the mailinglist already, but nobody seemed to have cared to open an issue for it.
It would be great to be able to put a customizable widget directly on the Android homescreen - e.g. for an "All off" functionality or similar.

get openhab url via autodicovery

It would be great to get the URL of your openhab server via autodiscovery.

The app already does discover the server via mDNS, I think.
But you still have to type in the URL if you want to save this in the setting.

In case there is more than one openhab server, the app should display all discovered servers to let the user choose one.

Selection item limitations

Behavior: When an item in a selection menu has been selected once, or is the first item in the list (and is therefore highlighted), it cannot be selected again. To invoke the affected item, another item must be selected first, after which the first item becomes 'available' again.

Expected behavior: The menu option is invoked each time when selected, regardless of previous selection.

Steps to reproduce: Load a sitemap with a Selection item containing two or more menu options. Select an item from the list, and select it again afterwards.

Versions: 1.4.x, 1.5.1.0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.