From dss at anticat.ch Sat Jul 2 21:44:42 2016 From: dss at anticat.ch (=?UTF-8?Q?Andreas_Dr=c3=b6scher?=) Date: Sat, 2 Jul 2016 21:44:42 +0200 Subject: [dss-developer] Neuen Betriebssystem-Version (dSS11-1GB) Message-ID: Hi Das letzte DSS update 1.12.0 hat par freudige ?berraschungen parat. Mein dSS11-1GB wechselte von Linux 3.0.17 zu Linux 4.1.19. Es freut mich zu sehen, dass der "alte" DSS noch gepflegt wird. Des Weiteren scheint auch das Rescue System das production repo erreicht zu haben, kudos! Installing rescue system kernel slots: 4096kB kernel: /usr/share/rescue-install/uImage-kernel--dtb-dss11-1gb.bin ramdisk: /usr/share/rescue-install/rescue-production-initramfs-dss11-1gb-t1.cpio.gz.u-boot kernel device: /dev/mtd0 initrd device: /dev/mtd2 Dies reduziert den meinen Nervenkitzel bei Updates deutlich. Wie wechselt man zwischen den 2 Systemen? (Im Moment scheint in kernel-prod noch 3.0 zu sein und in kernel-rescue der neue 4.1er). Freundliche Gr?sse Andreas From aldo at ikatu.com Mon Jul 4 20:35:28 2016 From: aldo at ikatu.com (aldo at ikatu.com) Date: Mon, 04 Jul 2016 15:35:28 -0300 Subject: [dss-developer] Best way for polling state of devices Message-ID: <0041349abbf76b785e3f943fe96aaa42@ikatu.com> Hello, Im integrating Digital STROM with another system developing a driver. I pretend a basic usage of Digital STROM system, as controlling all kind of present lights and light groups. I need to keep track of the states of the devices, and studing the JSON API i undestand that the only way to keep the track of the state of devices is asking one by one with a "HTTP GET /json/device/getOutputValue" in a constant polling. Im correct? or exist a better way to do this? Thanks in advance, Best regards, Aldo From d-digitalstrom.org at psuter.ch Tue Jul 5 11:58:31 2016 From: d-digitalstrom.org at psuter.ch (Pascal Suter) Date: Tue, 5 Jul 2016 11:58:31 +0200 Subject: [dss-developer] HomeKit support Message-ID: Hi all. Is there any support for Apple HomeKit planned on the DS side? regards Pascal From christoph.hofmann at digitalstrom.com Wed Jul 6 16:48:26 2016 From: christoph.hofmann at digitalstrom.com (Hofmann, Christoph) Date: Wed, 6 Jul 2016 14:48:26 +0000 Subject: [dss-developer] HomeKit support In-Reply-To: References: Message-ID: <4fc3a89cb2ed4634ba50cdb926a67958@vsrv-mailch01.newtechgroup.local> Hallo Pascal, > Hi all. Is there any support for Apple HomeKit planned on the DS side? nat?rlich beobachten wir die Entwicklungen in diesem Bereich, allerdings war Homekit bisher total unflexibel und daher f?r digitalSTROM schlicht nicht brauchbar. Mit unserer Listener App kann schon seit langem das digitalSTROM Smarthome bequem per Sprache gesteuert werden. Integrationen von Ger?ten, die heute noch nicht direkt von dS unterst?tzt werden, sind sehr einfach ?ber IFTTT m?glich. Anschlie?end k?nnen auch solche Ger?te per Sprache ?ber unseren Listener bedient werden. Details zu dem Listener erfahren Sie in diesem Artikel: https://ds-tools.net/blog/2015/07/23/das-zuhause-hoert-aufs-wort/ Homekit ist auch heute bereits m?glich, erfordert allerdings etwas Geschick, da eine Software (Homebridge) auf einem weiteren System (zum Beispiel RaspberryPi) installiert werden muss. Das habe ich in der Facebook digitalSTROM User Group mal kurz beschrieben: https://www.facebook.com/groups/53838628014/permalink/10153554393263015/ Gr??e Christoph -- Christoph Hofmann Software Development digitalSTROM GmbH From aldo at ikatu.com Wed Jul 6 16:52:50 2016 From: aldo at ikatu.com (aldo at ikatu.com) Date: Wed, 06 Jul 2016 11:52:50 -0300 Subject: [dss-developer] Best way for polling state of devices In-Reply-To: <0041349abbf76b785e3f943fe96aaa42@ikatu.com> References: <0041349abbf76b785e3f943fe96aaa42@ikatu.com> Message-ID: Re-asking the question: is it possible to get the output values of the devices from the property tree of the dSServer? or the only way to do that is using "HTTP GET /json/device/getOutputValue" for each device? On 2016-07-04 15:35, aldo at ikatu.com wrote: > Hello, > > Im integrating Digital STROM with another system developing a driver. > I pretend a basic usage of Digital STROM system, as controlling all > kind of present lights and light groups. > I need to keep track of the states of the devices, and studing the > JSON API i undestand that the only way to keep the track of the state > of devices is asking one by one with a "HTTP GET > /json/device/getOutputValue" in a constant polling. Im correct? or > exist a better way to do this? > > Thanks in advance, > > Best regards, > Aldo From christoph.hofmann at digitalstrom.com Wed Jul 6 16:57:38 2016 From: christoph.hofmann at digitalstrom.com (Hofmann, Christoph) Date: Wed, 6 Jul 2016 14:57:38 +0000 Subject: [dss-developer] Best way for polling state of devices In-Reply-To: <0041349abbf76b785e3f943fe96aaa42@ikatu.com> References: <0041349abbf76b785e3f943fe96aaa42@ikatu.com> Message-ID: <724e49b05e644fa0a41d4d5610d57e7c@vsrv-mailch01.newtechgroup.local> Dear Aldo, > I need to keep track of the states of the devices, and studing the JSON > API i undestand that the only way to keep the track of the state of > devices is asking one by one with a "HTTP GET > /json/device/getOutputValue" in a constant polling. Im correct? or exist > a better way to do this? This is not a good idea and it is even not allowed to do many of these requests on the bus (see ds-basics for rules). You could simply access the property tree and read the "lastCalledScene" for a combination of room and group. You can find it here: apartment->zones->zoneX->groups->groupY->lastCalledScene It is also possible to subscribe for events. Then you will be informed when e.g. a scene is called in the system. See dss-json api documentation for more information. Regs, Christoph -- Christoph Hofmann Software Development digitalSTROM GmbH From jonas.schnelli at include7.ch Wed Jul 6 17:04:55 2016 From: jonas.schnelli at include7.ch (Jonas Schnelli) Date: Wed, 6 Jul 2016 17:04:55 +0200 Subject: [dss-developer] HomeKit support In-Reply-To: References: Message-ID: <7F7BBF24-A8CB-4F72-BBBC-3919A97F4EFA@include7.ch> Hi Pascal > Hi all. Is there any support for Apple HomeKit planned on the DS side? HomeKit and Siri integration would even be more interesting with the upcoming iOS10 release. The DS Listener App is not really and alternative because of the missing OS integration. In 2014, I have started an iOS/MAC App that can do most of the DS interaction (the App is pretty stable). https://github.com/DSMenu/DSMenu The iOS part has a handy iOS Homescreen Widget (switch DS without unlocking your device/staring an app). It?s licensed under MIT and only the Mac App has hit the iTunes App Store. Currently I?m working on Bitcoin and maybe soon I?ll spend some time in completing/extending the iOS app. Of course it would be nice if someone would pickup the iOS app and add some iOS 10 features. --- From christoph.hofmann at digitalstrom.com Wed Jul 6 17:52:57 2016 From: christoph.hofmann at digitalstrom.com (Hofmann, Christoph) Date: Wed, 6 Jul 2016 15:52:57 +0000 Subject: [dss-developer] Best way for polling state of devices In-Reply-To: References: <0041349abbf76b785e3f943fe96aaa42@ikatu.com> Message-ID: <7ac67e478b4f4426a2312abc0ed4250f@vsrv-mailch01.newtechgroup.local> Dear Aldo, > Re-asking the question: is it possible to get the output values of the > devices from the property tree of the dSServer? or the only way to do > that is using "HTTP GET /json/device/getOutputValue" for each device? digitalSTROM is a decentralized system, the dSS does not know the output values of the devices. The system works with presets (scenes). If you really need to, you can ask the devices for the current output value. But as I already told you: If you like to do cyclic reads of the values, you may query only one value per minute and circuit! See Rule 8 and Rule 9 in ds-basics. Regs, Christoph -- Christoph Hofmann Software Development digitalSTROM GmbH From aldo at ikatu.com Fri Jul 8 15:56:22 2016 From: aldo at ikatu.com (aldo at ikatu.com) Date: Fri, 08 Jul 2016 10:56:22 -0300 Subject: [dss-developer] Best way for polling state of devices In-Reply-To: <7ac67e478b4f4426a2312abc0ed4250f@vsrv-mailch01.newtechgroup.local> References: <0041349abbf76b785e3f943fe96aaa42@ikatu.com> <7ac67e478b4f4426a2312abc0ed4250f@vsrv-mailch01.newtechgroup.local> Message-ID: Thanks Christoph for the answer. So, its not a good idea to ask the output value to the devices. Perfectly clear. Best Regards, Aldo On 2016-07-06 12:52, Hofmann, Christoph wrote: > Dear Aldo, > >> Re-asking the question: is it possible to get the output values of >> the >> devices from the property tree of the dSServer? or the only way to >> do >> that is using "HTTP GET /json/device/getOutputValue" for each >> device? > > digitalSTROM is a decentralized system, the dSS does not know the > output values of the devices. The system works with presets (scenes). > If you really need to, you can ask the devices for the current output > value. But as I already told you: If you like to do cyclic reads of > the values, you may query only one value per minute and circuit! See > Rule 8 and Rule 9 in ds-basics. > > Regs, > Christoph > > -- > Christoph Hofmann > Software Development > digitalSTROM GmbH > > > > _______________________________________________ > dss-developer mailing list > dss-developer at forum.digitalstrom.org > http://forum.digitalstrom.org/cgi-bin/mailman/listinfo/dss-developer From othmar.n at gmx.ch Tue Jul 12 20:16:37 2016 From: othmar.n at gmx.ch (othmar.n at gmx.ch) Date: Tue, 12 Jul 2016 20:16:37 +0200 Subject: [dss-developer] Integration of an Elsner Weather Station via RS485 Message-ID: <01b901d1dc69$8830ee80$9892cb80$@gmx.ch> Dear list members On the homepage of digitalSTROM I have read that on the Hackathon in Berlin last year some people have been successful in integrating an Elsner Weather Station via RS485. I am very interested in this, but I could not find more detailed explanation e.q. what kind of hardware and software are realy necessary to do that. Can anyone support me? Best regards Norbert -------------- next part -------------- An HTML attachment was scrubbed... URL: From ziyuan at smartboxasia.com Thu Jul 14 18:38:34 2016 From: ziyuan at smartboxasia.com (Zi Yuan, Chan) Date: Thu, 14 Jul 2016 16:38:34 +0000 Subject: [dss-developer] An Issue with Add-On Triggering System Message-ID: Hi, I am currently developing an add-on app for dS, and I have some issue when trying to use the triggering system (/usr/share/dss/data/scripts/system_register_trigger.js). Say I have registered a triggering event which look like the following (property under /usr/triggers/): http://i.imgur.com/FKhmSpe.png And when the event is triggered, the following JSON is received backend: http://i.imgur.com/KHIWMbg.png Take note on the mode value. Was expecting 'COOL' but received 'COOL&' instead. Seems like the variable separator in URL has been escaped and unable to roll back. I'm referring a lot on sonos-controller source code due to the similarity of the app that I'm going to write. sonos-controller uses triggering system too: http://i.imgur.com/QUVnvQQ.png And I find it weird how did sonos did it. Trying to trace further looking at the raisedEvent JSON: http://i.imgur.com/WFWMzxr.png The '&' is still in the value. Thus trace further to the source code i found: http://i.imgur.com/KWEooM2.png ( https://git.digitalstrom.org/dss-add-ons/sonos/blob/master/scripts/executeV2.js#L889 ) IMHO I don't think the code should be written as such. It doesn't fix the underlying bug but by working around as a fix to make it work. Thanks for bearing with me, my question for the long email is: 1. Is this issue going to be fixed? May I know where should I file this bug in gitlab? 2. I find there's lack of documentation on dS built in functions. For example functions like registerTrigger(). I learned that by reading thru sonos-controller source code. Would be grateful if someone can point me to the right link if the documentation exist that I have missed out. I find there's a few pain points being a dS add-on developer throughout my developing experience. I will be developing a few more add-ons in the future to suit our market needs in South East Asia at the same time bringing value to dS community. However the progress will be slower and demotivating if some of these issues didn't get improved. Let me know if there's anything I can be of help to improve the community experience. Regards, Zi Yuan. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ziyuan at smartboxasia.com Fri Jul 15 07:10:43 2016 From: ziyuan at smartboxasia.com (Zi Yuan, Chan) Date: Fri, 15 Jul 2016 05:10:43 +0000 Subject: [dss-developer] An Issue with Add-On Triggering System In-Reply-To: References: Message-ID: Same issue, in an attempt to try to avoid multiple parameters by consolidating all variables into one: http://i.imgur.com/apWzqL4.png I received the following JSON: http://i.imgur.com/X8OXFYI.png Apparently this is a bug that needs to be fixed. I'm new here and not sure if I'm the first one to face such issue? Are there any experienced add-on developers here that have experienced this before? Any advice is very much appreciated. Thanks. Regards, Zi Yuan. On Fri, Jul 15, 2016 at 12:38 AM Zi Yuan, Chan wrote: > Hi, > > I am currently developing an add-on app for dS, and I have some issue when > trying to use the triggering system > (/usr/share/dss/data/scripts/system_register_trigger.js). > > Say I have registered a triggering event which look like the following > (property under /usr/triggers/): > http://i.imgur.com/FKhmSpe.png > > > And when the event is triggered, the following JSON is received backend: > http://i.imgur.com/KHIWMbg.png > > > Take note on the mode value. Was expecting 'COOL' but received 'COOL&' > instead. Seems like the variable separator in URL has been escaped and > unable to roll back. > > I'm referring a lot on sonos-controller source code due to the similarity > of the app that I'm going to write. sonos-controller uses triggering system > too: > http://i.imgur.com/QUVnvQQ.png > > > And I find it weird how did sonos did it. Trying to trace further looking > at the raisedEvent JSON: > http://i.imgur.com/WFWMzxr.png > > > The '&' is still in the value. Thus trace further to the source code i > found: > http://i.imgur.com/KWEooM2.png > ( > https://git.digitalstrom.org/dss-add-ons/sonos/blob/master/scripts/executeV2.js#L889 > ) > > > IMHO I don't think the code should be written as such. It doesn't fix the > underlying bug but by working around as a fix to make it work. > > Thanks for bearing with me, my question for the long email is: > 1. Is this issue going to be fixed? May I know where should I file this > bug in gitlab? > 2. I find there's lack of documentation on dS built in functions. For > example functions like registerTrigger(). I learned that by reading thru > sonos-controller source code. Would be grateful if someone can point me to > the right link if the documentation exist that I have missed out. > > I find there's a few pain points being a dS add-on developer throughout my > developing experience. I will be developing a few more add-ons in the > future to suit our market needs in South East Asia at the same time > bringing value to dS community. However the progress will be slower and > demotivating if some of these issues didn't get improved. > > Let me know if there's anything I can be of help to improve the community > experience. > > > > Regards, > Zi Yuan. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From juerg.hinterberger at uitikon.ch Mon Jul 25 21:07:27 2016 From: juerg.hinterberger at uitikon.ch (=?iso-8859-1?Q?J=FCrg_Hinterberger?=) Date: Mon, 25 Jul 2016 21:07:27 +0200 Subject: [dss-developer] =?iso-8859-1?q?anzusprechen_=22Benutzerdefinierte?= =?iso-8859-1?q?_Handlungen=22?= Message-ID: <00dc01d1e6a7$c9059c10$5b10d430$@uitikon.ch> Hallo Hab schon einiges mit PHP umgesetzt, im Bereich isens200sensor und Markisen. Jetzt bin ich auf der Suche per PHP Script ?Scene Responder? & ?Benutzerdefinierte Handlungen? anzusprechen, ich find in der dss-json Dokumentation nichts schlaues? Wer kann da mir weiter helfen. Gruss J?rg -------------- next part -------------- An HTML attachment was scrubbed... URL: From christoph.hofmann at digitalstrom.com Tue Jul 26 09:45:10 2016 From: christoph.hofmann at digitalstrom.com (Hofmann, Christoph) Date: Tue, 26 Jul 2016 07:45:10 +0000 Subject: [dss-developer] anzusprechen "Benutzerdefinierte Handlungen" In-Reply-To: <00dc01d1e6a7$c9059c10$5b10d430$@uitikon.ch> References: <00dc01d1e6a7$c9059c10$5b10d430$@uitikon.ch> Message-ID: <7badae0d8e024106a4a1a856d41556d0@vsrv-mailch01.newtechgroup.local> Hallo J?rg, > Jetzt bin ich auf der Suche per PHP Script "Scene Responder" & "Benutzerdefinierte Handlungen" anzusprechen Einen Scene-Responder kann und sollte man nicht einfach so ansprechen, weil er auf einen bestimmten Ausl?ser reagiert. Eine Handlung hingegen kann man schon direkt aufrufen. Da gibt es zwei M?glichkeiten: 1) Du gehst im Browser zu den Handlungen, dann dr?ckst Du CTRL+SHIFT+i, w?hlst dann Deine Handlung aus und klickst auf Testen. Nun siehst Du im Debugger den Aufruf f?r diese Handlung. (Funktioniert zumindest im Chrome und Firefox.) Du wirst sehen, dass die Handlungen IDs im System haben. Wenn man eine bestimmte Handlung aufrufen m?chte, muss man also ein bisschen was herumprogrammieren. 2) Alternativ kannst Du ?ber die Cloud gehen und die Handlung ?ber ihren Namen aufrufen. Das geht ?ber unseren Text-to-digitalSTROM Service, welcher auch z.B. vom Listener verwendet wird. Ich habe daf?r auf https://ds-tools.net den IFTTT-Connector implementiert, welcher daf?r auch verwendet werden kann. Rufe ihn auf und schaue dann ganz unten auf der Seite nach dem URL-Aufruf. Mit diesem Aufruf kannst Du dann direkt Handlungen im System aufrufen. Gr??e Christoph -- Christoph Hofmann Software Development digitalSTROM GmbH