Hi
I am experimenting with the example found here:
http://developer.telldus.com/browser/ex ... ive/server
To make my headless Linux system connect to Telldus live (to expose devices to control). Everything seems to be working except that I don't know how to update device status at the server when devices commands is executed.
I have tried to call sendDevicesReport() but it doesent happens anything at the server.
I can't find any API documentation for this API is it available somewhere?
Thanks
David
Update status in Telldus live (API)
Moderator: Telldus
Update status in Telldus live (API)
My home automation software: Automagically @ Raspberry Pi http://automagically.weebly.com
-
- Site Admin
- Posts: 2243
- Joined: Fri Mar 17, 2023 9:45 am
- Location: Lund
- Contact:
Re: Update status in Telldus live (API)
You need to send a "DeviceEvent". Please see the TelldusCenter plugin for this:
http://developer.telldus.com/browser/te ... t__.js#L36
http://developer.telldus.com/browser/te ... t__.js#L36
Micke Prag
Software
Telldus Technologies
Software
Telldus Technologies
Re: Update status in Telldus live (API)
Tackar, som vanligt snabba och bra svar från Telldus / Micke.
My home automation software: Automagically @ Raspberry Pi http://automagically.weebly.com
Re: Update status in Telldus live (API)
Bonjour,
Déjà que ça poste pas souvent, alors si en plus on ne comprend rien
Déjà que ça poste pas souvent, alors si en plus on ne comprend rien
Using a Tellstick Net aussi
Re: Update status in Telldus live (API)
Oui!
My appologies. But the respons wasn't very content rich...
My translation:
"Thanks, as usal quick and good answers from Telldus / Micke"
My appologies. But the respons wasn't very content rich...
My translation:
"Thanks, as usal quick and good answers from Telldus / Micke"
My home automation software: Automagically @ Raspberry Pi http://automagically.weebly.com
Re: Update status in Telldus live (API)
Det fungerar, en gång...micke.prag wrote:You need to send a "DeviceEvent". Please see the TelldusCenter plugin for this:
http://developer.telldus.com/browser/te ... t__.js#L36
Jag kan alltså skicka ett DeviceEvent men alla efterföljande medelanden verkar ignoreras oberoende av vilket device jag skickar uppdatering för, tills dess att jag kopplar ner och kopplar upp igen.
Har verifierat att både att rapportera status on och status off fungerar.
Någon ide?
My home automation software: Automagically @ Raspberry Pi http://automagically.weebly.com
Re: Update status in Telldus live (API)
Bumping this on behalf of David, as it seems like this still does not work. I am using Automagically -> TelldusLive -> Remotestick (Android), but missing the status seems a bit lame
Re: Update status in Telldus live (API)
Hej,
Försöker förstå hur en SensorsReport ska kodas, men får inte ihop vilka datatyper som ska skickas. Hur kan jag validera ifall följande kodning är korrekt? Har försökt följa alla länkar jag kunde hitta för att få fram vad som ska skickas.
Försökte sniffa vad TellCenter gör men då allt skickas över SSH så är man tyvärr blind. Vore fint ifall det fanns en protokollbeskrivning tillgänglig.
Vore tråkigt ifall jag ska behöva belasta Live servrarana med trial-and-error
/Marcus
Försöker förstå hur en SensorsReport ska kodas, men får inte ihop vilka datatyper som ska skickas. Hur kan jag validera ifall följande kodning är korrekt? Har försökt följa alla länkar jag kunde hitta för att få fram vad som ska skickas.
Code: Select all
D:SensorsReportlh5:model4:EA4C9:sensor_idi2Cs8:protocol6:oregon4:name7:Garagetslh6:lastUpi52DC0ADCs4:typei1s5:value3:10
- * Ska lastUp vara en integer eller en string? För jag tror det ska vara av typen epoch i all fall.
* Ska sensor_id vara integer eller en string? Bör den ha ett annat värde än det ID som kommer från tdtool?
* Är protokollet case sensitivt?
* Eftersom man hanterar Dictionaries; kan man då skicka model, sensor_id, protocol och name slumpvis eller måste de komma i viss ordning.
* Ska value skickas som integer eller sträng?
* Osv...
Vore tråkigt ifall jag ska behöva belasta Live servrarana med trial-and-error
/Marcus
Re: Update status in Telldus live (API)
Om du vill kan du titta i hur jag gjort i tellive-py. Där fungerar rapporteringen av sensor data.
Re: Update status in Telldus live (API)
Tack! Hade faktiskt redan hittat dit och vad jag gjort för fel. Har det fungerande nu tack vare din kod.
/Marcus
/Marcus