This is the forum archive of Homey. For more information about Homey, visit the Official Homey website.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
Official
Comments
before http there is a space
I have a question. I have a Pioneer receiver and installed the Pioneer app on Homey. It is working great, but the command to switch my receiver to the GAME hdmi input (my Chromecast) is not working (probably it is a different command for my receiver). Now I was wondering. I can control my receiver with a telnet session, and with telnet I am able to switch my receiver to the GAME hdmi input. Is it possible to send a telnet command with the help of this app?
Thanks in advance!
Telnet is not supported by the HTTP app.
Hi Erik, I tried using the POST action card (A30) with a https URL. It fails with the message "unable to verify the first certificate" even though the URL has a valid SSL certificate. Any clue what is going on and how to fix it?
But I ran into another problem. I'm trying to set a header overriding the card with node http options. Havent got it working yet though. But I'll fiddle some more.
[EDIT]
Fixed it!
Beacuse there is not yet a modbus app, i using a RPI with openhab en mqtt to read and write the modules with homey.
This works OK but in firmware 3 there is also a RESTful api in the device intergraded.
And a want to use that, but don't know exactly how.
The documentation for the API can be found on https://www.moxa.com/support/DownloadFile.aspx?type=support&id=13711
Basicaly you can do a GET or a PUT message towards the moxa. i tested this with postman and it works, but i want to know if its possible with homey and the HTTP Request flow APP.
As example to get the device info you need to send a GET with http://<IPADDRESS>/api/slot/0/sysInfo/device
but with some headers, they are necessary!
The headers are :
> Accept: vdn.dac.v1
> Content-Type: application/json
The return message is a JSON output like : {"slot":0,"sysInfo":{"device":[{"modelName":"E1214","deviceName":"slave1","deviceUpTime":"22:54:50","firmwareVersion":"V3.0 Build17111512"}]}}
It will be great if somebody can help me out so i get this to work.
EDIT : found the solution after some debugging
Creating flow that triggers e.g. every 5 seconds.(if)(then) A22 card with url (first field:)
{"method":"get","protocol":"http:","hostname":"192.168.2.15","path":"/api/slot/0/io/di/<channelnumber>/diStatus","headers":{"Accept":"vdn.dac.v1","Content-Type":"application/json"}}
<channelnumber> = input number on the moxa module (0-6 for the E1214)
This returns jSON:
Second Field JSONPath : $.io.di[*].diStatus because i only needs the status.
Status can be 0 or 1 en that will be stored in a variable(third field)
Now testing and composing the put to trigger a relay output, any help will be great
Is there a way to only poll once and extract the 6 variables via json instead of using the card 6 times to poll?
the way I’m doing it seems to lag my homey everytime it polls..
one more question, is there a way to execute a flow when any of the json path returns an error?
I can test a flow to check manually but when public APIs decide to change the path, I wouldn’t be updated and I was wondering if there is a card for that?
I have 2 camera's connected to my Synology, for both camera's I use an http action with an different name in it:
The MP-cam is switched off in Synology and will not detect anything, but still every time a movement is detected on the Doorbird camera I get an log of both in Simple Log:
SImple log lines are written by different flows, where the last part of the url is the selection. (if value = Doorbird_MotionDetect) ..
Or is my Surveillance on the NAS sending both...
If http://192.168.10.XXX/api/app/com.internet/whitelist/Camera-Motion/MP-CAM1_MotionDetect is triggered I also see the VoordeurLicht variable set on the Doorbird flow.
http://192.168.10.XXX/api/app/com.internet/whitelist/MP-CAM1/
MP-CAM1_MotionDetecthttp://192.168.10.XXX/api/app/com.internet/whitelist/Doorbird/
Doorbird_MotionDetectThe 'anders' actions are performed when 1 or more conditions are not met.