# \[APP\]\[Pro\] HDL Smartbus

**URL:** <https://community.homey.app/t/app-pro-hdl-smartbus/26575>\
**Category:** Apps\
**Tags:** homey-pro\
**Created:** [February 29, 2020, 5:55pm UTC](https://community.homey.app/t/app-pro-hdl-smartbus/26575 "2020-02-29T17:55:24Z")\
**Posts on this page:** 20\
**Page:** 3

<div class="post-metadata">

**Author:** ![Fredrik\_Meyer-Lampe](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/fredrik_meyer-lampe/32/38361_2.png) [@Fredrik\_Meyer-Lampe](https://community.homey.app/u/Fredrik_Meyer-Lampe)\
**Post date:** [March 27, 2021, 1:07pm UTC](https://community.homey.app/t/app-pro-hdl-smartbus/26575/42 "2021-03-27T13:07:02Z")

</div>

@AndreasL Really nice work. I have had HDL bus pro system since 2011, and was so happy to see this system potentially getting a new life 🙂

I do however miss the temperature the IR module so that I can control my receiver through Homey. Possible to add access to that would have been fantastic ? [Products-HDL Automation-Residential Hospitality Commercial](https://hdlautomation.com/product100000051623916.html)

I am able to get all 8i1 and 12i1 sensor to remind me of presence, but is it possible to turn the motion sensor off by Homey ?

---

<div class="post-metadata">

**Author:** ![Fredrik\_Meyer-Lampe](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/fredrik_meyer-lampe/32/38361_2.png) [@Fredrik\_Meyer-Lampe](https://community.homey.app/u/Fredrik_Meyer-Lampe)\
**Post date:** [March 28, 2021, 8:41am UTC](https://community.homey.app/t/app-pro-hdl-smartbus/26575/43 "2021-03-28T08:41:09Z")

</div>

If I understand universal switch right, the purpose of this is to be able to trigger something from HDL to Homey.

In example assign a button to a HDL panel triggering device 220 (homey) universal switch 1.  
When this universal switch is triggered a flow can be started. Is this correct?

But is it possible to do it the opposite? In example let Homey set my house to night mode (trigger logic module device 60’s universal switch 101??

---

<div class="post-metadata">

**Author:** ![AndreasL](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/andreasl/32/62433_2.png) [@AndreasL](https://community.homey.app/u/AndreasL)\
**Post date:** [March 28, 2021, 5:45pm UTC](https://community.homey.app/t/app-pro-hdl-smartbus/26575/44 "2021-03-28T17:45:43Z")

</div>

Hi Fredrik,  
Glad to hear that the app is working out for you 🙂 The IR-module that you are mentioning is actually not present in the underlying library that I’ve based this on at all ([smart-bus/commands.js at master · caligo-mentis/smart-bus · GitHub](https://github.com/caligo-mentis/smart-bus/blob/master/lib/commands.js)) so that request would take a lot of work in the library before I could implement it in the app.

No turning off the 8-in-1 sensor either, but you could move the logic away from the sensor or the logic controller and over to Homey, and then just disregard any movement if some other state is set (like time of day or another sensor).

About the Universal switches: That part is pretty tricky, as nothing particular in the bus is responsible for keeping the state of universal switches. The implementation today is based on Homey listing to the bus for Universal Switch changes (so your example is correct), and it can also send back out, but to no-one in particular. I’ve considered adding the possibility to set the address of a logic-controller in the apps setting, and then send all Universal Switches to that. If that was the case, I guess you could switch to night mode. The question is though: Do you want HDL to have a night mode, or Homey? I’m leaning in the direction of leaving the logic part to Homey.

Andreas

---

<div class="post-metadata">

**Author:** ![AndreasL](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/andreasl/32/62433_2.png) [@AndreasL](https://community.homey.app/u/AndreasL)\
**Post date:** [March 28, 2021, 5:51pm UTC](https://community.homey.app/t/app-pro-hdl-smartbus/26575/45 "2021-03-28T17:51:49Z")

</div>

Hi,

Sadly, the dry-contacts are not added in the underlying library that I use in this app:

> <https://github.com/caligo-mentis/smart-bus/blob/d783e67ffbe372217f9598547831a82fa13439c4/lib/commands.js#L1751>

This means that someone will have to figure out the bytes to send to the bus for those devices, and then it can be added to the library. After that, it needs to be added to this app.

Andreas

---

<div class="post-metadata">

**Author:** ![Robin\_Oberst](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robin_oberst/32/32263_2.png) [@Robin\_Oberst](https://community.homey.app/u/Robin_Oberst)\
**Post date:** [April 7, 2021, 11:53am UTC](https://community.homey.app/t/app-pro-hdl-smartbus/26575/46 "2021-04-07T11:53:25Z")

</div>

Just use the logic model to set a universal switch, then use that to initiate a flow in homey. I have done that from my panels so no reason not to do it from your dry contact I would assume

---

<div class="post-metadata">

**Author:** ![AndreasL](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/andreasl/32/62433_2.png) [@AndreasL](https://community.homey.app/u/AndreasL)\
**Post date:** [April 7, 2021, 2:10pm UTC](https://community.homey.app/t/app-pro-hdl-smartbus/26575/48 "2021-04-07T14:10:01Z")

</div>

I’ve published a new version to test now, based on the latest SDK from Homey, v3. You can install it from here: [HDL SmartBus App for Homey | Homey](https://homey.app/no-no/app/com.github.alydersen.hdl-smartbus-homey/HDL-SmartBus/test/)

I seems stable on my system, but if someone else could test it that would be good. The “look and feel” is also updated to match Homeys new profile.

---

<div class="post-metadata">

**Author:** ![Robin\_Oberst](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robin_oberst/32/32263_2.png) [@Robin\_Oberst](https://community.homey.app/u/Robin_Oberst)\
**Post date:** [April 7, 2021, 4:02pm UTC](https://community.homey.app/t/app-pro-hdl-smartbus/26575/49 "2021-04-07T16:02:14Z")

</div>

Just installed and quickly tested. The only thing that appears not to work now is the picking up of a universal switch change of state (turn on). Which ironically I just discussed above so now neither my panel based nor sensor triggered flows work. Probably I need to dig a bit deeper because it could also be the reset that does not work. ie the sensor and panel are used to switch the USs on which triggers a flow, the flow then turns the US off again after 10 seconds so it is ready to be re triggered. Assume it is easy to revert to the old version?

---

<div class="post-metadata">

**Author:** ![horakmar](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/horakmar/32/33849_2.png) [@horakmar](https://community.homey.app/u/horakmar)\
**Post date:** [April 7, 2021, 4:07pm UTC](https://community.homey.app/t/app-pro-hdl-smartbus/26575/50 "2021-04-07T16:07:19Z")

</div>

Got it! Many thanks!

---

<div class="post-metadata">

**Author:** ![AndreasL](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/andreasl/32/62433_2.png) [@AndreasL](https://community.homey.app/u/AndreasL)\
**Post date:** [April 7, 2021, 4:17pm UTC](https://community.homey.app/t/app-pro-hdl-smartbus/26575/51 "2021-04-07T16:17:18Z")

</div>

@Robin_Oberst Thanks! Yes - you can install the normal version at any time to revert. I’ll look into the US.

---

<div class="post-metadata">

**Author:** ![Robin\_Oberst](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robin_oberst/32/32263_2.png) [@Robin\_Oberst](https://community.homey.app/u/Robin_Oberst)\
**Post date:** [April 7, 2021, 5:44pm UTC](https://community.homey.app/t/app-pro-hdl-smartbus/26575/52 "2021-04-07T17:44:55Z")

</div>

Reverted to original version, USs work like a dream again 🙂 Let me know if you want me to test the beta again.

---

<div class="post-metadata">

**Author:** ![Robin\_Oberst](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robin_oberst/32/32263_2.png) [@Robin\_Oberst](https://community.homey.app/u/Robin_Oberst)\
**Post date:** [April 7, 2021, 5:54pm UTC](https://community.homey.app/t/app-pro-hdl-smartbus/26575/53 "2021-04-07T17:54:20Z")

</div>

I am a bit confused by the statement you make here “and it can also send back out, but to no-one in particular”. I am able to reset the universal switches from homey (ie turn them to off again). Have not tried switching them on from homey.

---

<div class="post-metadata">

**Author:** ![AndreasL](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/andreasl/32/62433_2.png) [@AndreasL](https://community.homey.app/u/AndreasL)\
**Post date:** [April 8, 2021, 6:04am UTC](https://community.homey.app/t/app-pro-hdl-smartbus/26575/54 "2021-04-08T06:04:21Z")

</div>

Hi Robin,  
When Homey sends out a change on the US, it does it as a broadcast, so not addressed at a particular device/address.

---

<div class="post-metadata">

**Author:** ![Robin\_Oberst](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robin_oberst/32/32263_2.png) [@Robin\_Oberst](https://community.homey.app/u/Robin_Oberst)\
**Post date:** [April 8, 2021, 6:22am UTC](https://community.homey.app/t/app-pro-hdl-smartbus/26575/55 "2021-04-08T06:22:22Z")

</div>

OK, I see (or at least I think I see). Do you have any documentation on the use of USs in HDL? I have found none and everything I have done is trial and error and guess work.

---

<div class="post-metadata">

**Author:** ![horakmar](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/horakmar/32/33849_2.png) [@horakmar](https://community.homey.app/u/horakmar)\
**Post date:** [April 8, 2021, 7:02am UTC](https://community.homey.app/t/app-pro-hdl-smartbus/26575/56 "2021-04-08T07:02:34Z")

</div>

Hi Andreas. Really thanks for your work! As @Robin_Oberst wrote - US solved this problem!! It’s absolutelly perfect!

I have last thing in my house. I have winter garden with electric windows. They are connected to MSC06.432 6CH.

[https://b2b.hdl-automation.cz/en/ke-stazeni/produkty/katalogove-listy/buspro/bezpotencialove-kontakty/hdl-msc06-432-6ch-io-module](https://b2b.hdl-automation.cz/en/ke-stazeni/produkty/katalogove-listy/buspro/bezpotencialove-kontakty/hdl-msc06-432-6ch-io-module)

It’s same as relay (for me). From documentaiton: "1. Out 1-6: Relay output.  
". Can you look into code and maybe try to connect same like other relays which works in Homey?

Many thanks! You changed my life 🙂

---

<div class="post-metadata">

**Author:** ![AndreasL](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/andreasl/32/62433_2.png) [@AndreasL](https://community.homey.app/u/AndreasL)\
**Post date:** [April 8, 2021, 10:58am UTC](https://community.homey.app/t/app-pro-hdl-smartbus/26575/57 "2021-04-08T10:58:44Z")

</div>

Hi @horakmar ! Glad to hear that you like the app 🙂 I’ll try to add the unit as a relay as soon as I’ve fixed the upgrade to SDK3. Should be just a couple of days.

Andreas

---

<div class="post-metadata">

**Author:** ![AndreasL](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/andreasl/32/62433_2.png) [@AndreasL](https://community.homey.app/u/AndreasL)\
**Post date:** [April 8, 2021, 3:30pm UTC](https://community.homey.app/t/app-pro-hdl-smartbus/26575/58 "2021-04-08T15:30:53Z")

</div>

@Robin_Oberst New version out now for test (0.4.3) at [HDL SmartBus App for Homey | Homey](https://homey.app/no-no/app/com.github.alydersen.hdl-smartbus-homey/HDL-SmartBus/test/). Great if you can test it. The other one actually had trouble with all incoming communication, but that is solved now.

About the Universal Switches and documentation, I haven’t found any myself. All other units are physical units with an address, which allows me to ask for status and otherwise “sniff” the bus to see what is going on. USs isn’t like that, so I use a broadcast address (for all units) when I send an update of the status. I’ve been thinking that I could send it specifically to a logic controller also, so that is an approach we can test (allow the user to specify the address of a logic controller and then send a copy of all US activity to that).

---

<div class="post-metadata">

**Author:** ![horakmar](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/horakmar/32/33849_2.png) [@horakmar](https://community.homey.app/u/horakmar)\
**Post date:** [April 8, 2021, 3:57pm UTC](https://community.homey.app/t/app-pro-hdl-smartbus/26575/59 "2021-04-08T15:57:23Z")

</div>

Everything looks working, staying in new version. Good job!

---

<div class="post-metadata">

**Author:** ![Robin\_Oberst](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robin_oberst/32/32263_2.png) [@Robin\_Oberst](https://community.homey.app/u/Robin_Oberst)\
**Post date:** [April 8, 2021, 6:27pm UTC](https://community.homey.app/t/app-pro-hdl-smartbus/26575/60 "2021-04-08T18:27:01Z")

</div>

Well this is interesting. Again my universal switches do not respond in the new version. @horakmar have you tested universal switches with the new module?

---

<div class="post-metadata">

**Author:** ![AndreasL](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/andreasl/32/62433_2.png) [@AndreasL](https://community.homey.app/u/AndreasL)\
**Post date:** [April 9, 2021, 5:49am UTC](https://community.homey.app/t/app-pro-hdl-smartbus/26575/61 "2021-04-09T05:49:38Z")

</div>

New version out again at [HDL SmartBus App for Homey | Homey](https://homey.app/no-no/app/com.github.alydersen.hdl-smartbus-homey/HDL-SmartBus/test/). I’ve found and fixed the issue you describe @Robin_Oberst and I’ve also added MSC06.432 6CH as a relay for you @horakmar

---

<div class="post-metadata">

**Author:** ![horakmar](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/horakmar/32/33849_2.png) [@horakmar](https://community.homey.app/u/horakmar)\
**Post date:** [April 9, 2021, 6:38am UTC](https://community.homey.app/t/app-pro-hdl-smartbus/26575/62 "2021-04-09T06:38:10Z")

</div>

Hi Andreas, you are my hero! Works perfectly, i can automatize my winter garden by temperature and weather! 🙂

[Previous page](https://community.homey.app/t/app-pro-hdl-smartbus/26575.md?page=2)

[Next page](https://community.homey.app/t/app-pro-hdl-smartbus/26575.md?page=4)
