Home Automation Alarm Sender how to configure?

So i have my phone and a read in posts that i am able to send my alarm data to openhab via this app Home Automation Alarm Sender. I install it to my phone.
Item
String phone_alarm “phone_alarm”

in app
http://192.168.1.43:8080/rest/items/phone_alarm/state
phone_alarm (in second field)

What i have to do now ? whice binding i have to use?
thnx in advance
(totally noob with rest api)

Never used it but the information is all here

Where are you stuck ?

Number phone_alarm “phone_alarm”
but in app
http://192.168.1.43:8080/rest/items/phone_alarm/state
phone_alarm (in second field)
Error–>“Last request error:Failed to connect to /192.168.1.43:8080”

if i set the url with host name
http://david:8080/rest/items/phone_alarm/state
the error is >“Last request error:unable to resolve host “david”:No address associated with hostname”

also

Did you install the REST API as mentioned here ?
Edit: the REST API is installed by default I think so you do not need the above. It is just the documentation. You should be able to see the API icon when you access the initial page http://192.168.1.43:8080

Are you on the same wifi as the openhab server ?
If you use your browser on your smartphone can you access http://192.168.1.43:8080 ?

yes. but tell me if this error on start up associated with this.
==> /var/log/openhab2/openhab.log <==

2019-03-26 17:41:06.244 [ERROR] [org.eclipse.smarthome.core          ] - bundle org.eclipse.smarthome.core:0.11.0.oh250M1 (102)[org.eclipse.smarthome.core.internal.scheduler.PeriodicSchedulerImpl(116)] : bind method [setScheduler] not found

2019-03-26 17:41:06.247 [ERROR] [org.eclipse.smarthome.core          ] - bundle org.eclipse.smarthome.core:0.11.0.oh250M1 (102)[org.eclipse.smarthome.core.internal.scheduler.PeriodicSchedulerImpl(116)] : unbind method [unsetScheduler] not found

2019-03-26 17:41:07.271 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing 'openhab-misc-restdocs': Error restarting bundles:

	Exception in org.eclipse.smarthome.io.rest.sse.internal.SseActivator.start() of bundle org.eclipse.smarthome.io.rest.sse.

YES

Yes

YES

quite possible. Check this

There is a bug opened for this. It seems that all cron related rules (like yours if you followed the example in github) are affected.

What version of openhab do you have installed ?

openHAB 2.5.0~M1-1 (Milestone Build)

I am not a developer so I do not get all the details about software versioning but I would say that you are hitting this bug.
All I can say is that I am running on 2.4 (stable) and my cron jobs are running fine

Regards

1 Like