Maker API

Can you elaborate, /device/:id/off and /device/:id/on work for me. What is not working as documented?

/devices/all does return attributes with current values in the attributes section of the JSON.

as does /devices/:id also returns the currentValue for each attribute.

Yep, I've built some awesomeness on top of that websocket. :slight_smile:

Next phase of my little passion project is to build in MQTT support and a self-hosted Alexa skill.

I'm also working on a conference talk based on this project. .NET Core is blazing fast and incredibly powerful. 'Course, I'm biased, since I'm on the .NET team at Microsoft. :laughing:

1 Like

When is the Windows Phone coming back?? :stuck_out_tongue_closed_eyes:

I am never giving up....

4 Likes

Oh man, the feels. Too soon. :cry:

Microsoft Launcher on Android is pretty sweet, though.

1 Like

I still have my Lumia 640 and charge it up every now and then to take a spin. Favorite mobile OS to date.

2 Likes

I admit it, I bought an inexpensive Android tablet to play with and for installing apps (why hardly any web apps??), but still not ready to give up my Windows Phone :wink: . I put Launcher 10 on the tablet and it made me feel good, almost like the real thing!

If you ignore the lack of apps (which doesn't bother ME anyway!) I don't see why anybody would not prefer it over Android or iOS.

2 Likes

Thanks -- mostly my errors. I've got the on/off/setLevel figured and didn't realize that that ID without any parameters would return the current settings. Thanks.

Still need to figure out the right way to do color parameters especially for the Philips Hue.

Overall, working very well. Notification would be nice but working around it for now.

Again, thanks for the capabilities and the simple interface.

I really need some help with setting colors.

http://192.168.1.2/apps/api/13/devices/100/setColor/Red?access_token=b1kjhdsfhdgflkhj-hggh56-56-5658765-6-a34db928deed

does not work.

its a philips hue color bulb

This works: (Changes hue to green)
http://192.168.1.2/apps/api/13/devices/100/setHue/30?access_token=b1kjhdsfhdgflkhj-hggh56-56-5658765-6-a34db928deed

This works: (Changes level)
http://192.168.1.2/apps/api/13/devices/100/setLevel/50?access_token=b1kjhdsfhdgflkhj-hggh56-56-5658765-6-a34db928deed

This works: (Changes saturation)
http://192.168.1.2/apps/api/13/devices/100/setSaturation/100?access_token=b1kjhdsfhdgflkhj-hggh56-56-5658765-6-a34db928deed

I can send three commands after one another but i would like to use the "setColor" command so that i can set both hue, level and saturation in one GET command.

This does nothing:
http://192.168.1.2/apps/api/13/devices/100/setColor/hue:35,saturation:0,level:101?access_token=b1kjhdsfhdgflkhj-hggh56-56-5658765-6-a34db928deed

Any ideas?

Thx - I presume the last is setSaturation?

It would be nice to have more documentation on this and also, now that I'm catching up, on the WebSockets. Does it provide event notification? If there is a URL for docs I'll look.

Hi, yes just copied the wrong url.

I still havn't figured this out

Woild love some more documentation

could this be used to pull the album art from a sonos player to a URL for use on the dashboard?
if i use
http://xxx.xxx.xxx.xxx/apps/api/196/devices/228?access_token=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

it returns
[{"name":"Sonos Player","label":"Dining Room Sonos","type":"Sonos Player","id":"228","date":"2019-06-27T11:46:37+0000","model":null,"manufacturer":null,"capabilities":["Refresh","MusicPlayer","Actuator","SpeechSynthesis","AudioVolume"],"attributes":{"level":"44","dataType":"NUMBER","values":null,"mute":"unmuted","status":"playing","trackData":"{\"audioSource\":\"Radio Stream\",\"station\":\"Radio X UK\",\"name\":\"Catfish And The Bottlemen - Longshot\",\"artist\":\"Toby Tarrant\",\"album\":null,\"trackNumber\":null,\"status\":\"playing\",\"level\":\"44\",\"mute\":\"unmuted\",\"uri\":\"x-rincon-mp3radio://http://vis.media-ice.musicradio.com/RadioXUKMP3\",\"trackUri\":\"x-rincon-mp3radio://http://vis.media-ice.musicradio.com/RadioXUKMP3\",\"transportUri\":\"x-sonosapi-stream:s254741?sid=254&flags=8224&sn=0\",\"enqueuedUri\":\"x-sonosapi-stream:s254741?sid=254&flags=8224&sn=0\",\"metaData\":\"<DIDL-Lite xmlns:dc=\\\\\\\"http:\\\\/\\\\/purl.org\\\\/dc\\\\/elements\\\\/1.1\\\\/\\\\\\\" xmlns:upnp=\\\\\\\"urn:schemas-upnp-org:metadata-1-0\\\\/upnp\\\\/\\\\\\\" xmlns:r=\\\\\\\"urn:schemas-rinconnetworks-com:metadata-1-0\\\\/\\\\\\\" xmlns=\\\\\\\"urn:schemas-upnp-org:metadata-1-0\\\\/DIDL-Lite\\\\/\\\\\\\"><item id=\\\\\\\"-1\\\\\\\" parentID=\\\\\\\"-1\\\\\\\" restricted=\\\\\\\"true\\\\\\\"><dc:title>Radio X UK<\\\\/dc:title><upnp:class>object.item.audioItem.audioBroadcast<\\\\/upnp:class><desc id=\\\\\\\"cdudn\\\\\\\" nameSpace=\\\\\\\"urn:schemas-rinconnetworks-com:metadata-1-0\\\\/\\\\\\\">SA_RINCON65031_<\\\\/desc><\\\\/item><\\\\/DIDL-Lite>\",\"trackMetaData\":\"<DIDL-Lite xmlns:dc=\\\\\\\"http:\\\\/\\\\/purl.org\\\\/dc\\\\/elements\\\\/1.1\\\\/\\\\\\\" xmlns:upnp=\\\\\\\"urn:schemas-upnp-org:metadata-1-0\\\\/upnp\\\\/\\\\\\\" xmlns:r=\\\\\\\"urn:schemas-rinconnetworks-com:metadata-1-0\\\\/\\\\\\\" xmlns=\\\\\\\"urn:schemas-upnp-org:metadata-1-0\\\\/DIDL-Lite\\\\/\\\\\\\"><item id=\\\\\\\"-1\\\\\\\" parentID=\\\\\\\"-1\\\\\\\" restricted=\\\\\\\"true\\\\\\\"><res protocolInfo=\\\\\\\"sonos.com-http:*:*:*\\\\\\\">x-sonosapi-stream:s254741?sid=254&flags=8224&sn=0<\\\\/res><r:streamContent>Catfish And The Bottlemen - Longshot<\\\\/r:streamContent><r:radioShowMd>Toby Tarrant,p921118<\\\\/r:radioShowMd><upnp:albumArtURI>\\\\/getaa?s=1&u=x-sonosapi-stream%3as254741%3fsid%3d254%26flags%3d8224%26sn%3d0<\\\\/upnp:albumArtURI><dc:title>x-sonosapi-stream:s254741?sid=254&flags=8224&sn=0<\\\\/dc:title><upnp:class>object.item<\\\\/upnp:class><\\\\/item><\\\\/DIDL-Lite>\"}","trackDescription":"Radio X UK's Toby Tarrant playing Catfish And The Bottlemen - Longshot","volume":"44"},"commands":[{"command":"mute"},{"command":"mute"},{"command":"nextTrack"},{"command":"pause"},{"command":"play"},{"command":"playText"},{"command":"playTextAndRestore"},{"command":"playTrack"},{"command":"playTrackAndRestore"},{"command":"previousTrack"},{"command":"refresh"},{"command":"restoreTrack"},{"command":"resumeTrack"},{"command":"setLevel"},{"command":"setTrack"},{"command":"setVolume"},{"command":"speak"},{"command":"stop"},{"command":"unmute"},{"command":"unmute"},{"command":"volumeDown"},{"command":"volumeUp"}]}]

i can see the string for the album art in there but lack the coding skills to get it out into a usable URL for the dashboard. I'll admit now that i have been fumbling round for hours pasting various bits of text into various URL's hoping to stumble on the right thing. but at a certain point you have to admit defeat and ask for help...
cheers

Can someone explain which URL goes where?

What goes in the Maker API line "URL to send device events to by POST" ?

What goes in the Homeseer Hubitat plugin for "Hubitat Maker API URL:" ?

TIA

EDIT: What goes in the [URL] spot?

http://192.168.0.32/apps/api/3379/postURL/[URL]?access_token=

Here is and example. This is what I send to Node-Red to populate MQTT.... I configure Node-Red to listen on port 1880... I also defined it to look for only postrs containing "/HUBITAT".

Sorry, I can't help with the Homeseer part.

image

Here is what is in the Maker API where it says to enter under the label "URL to send device events to by POST". This was obtained from the bottom of the Maker API page.

http://192.168.0.32/apps/api/3379/postURL/[URL]?access_token=xxxxxxxx

Here is what is in the box in Homeseer ". This was obtained by clicking on the blue link "Get All Devices with Full Details". Then copy the URL at the top.

http://192.168.0.32/apps/api/3379/devices/all?access_token=xxxxxxxx

So is this right or backwards or not filled in correctly? Tokens removed for security. TIA

If you're trying to setup the HomeSeer plugin you use the Maker API URL for Full device details. it's in the Apps -> Maker Api local URL's. It's the second link in list.

The HS plugin does not use the new POST mechanism from Hubitat.

Ok, I left the URL line blank in Maker API and copied the link for full details and put that in the HS plugin. All that came in was an office light which there is no control.

Go post on the HomeSeer forum and get MCS to look at the setup. I no longer maintain the HS plugin nor do I use HS currently.

I already left a message for Michael, thanks.

How do I get the App ID Number for Maker API or any App?