Code Monkey home page Code Monkey logo

virtual-devices's Introduction

Virtual Devices

This app gives you the opportunity to add Virtual Devices to Homey. You can operate the Virtual Devices from the UI and/or use them in flows.

Or you can add a mode and add it as a condition, e.g. to disable multiple flows when going on Holiday.

Important note:

This app is no longer updated. It works how it works. I may look at some pull-requests, but nothing major or drastic.

Homey is developing much quicker than I can keep up. With the new release of Homey Bridge and support for TypeScript, it makes sense to start from scratch and create a new Virtual Devices v2 app that follows the latest standards.

That won't be me, though. I have different interests. Perhaps in the future...., but no, don't wait for that.

Feel free to take the name, the ideas and even parts of the code. In fact I would like that very much.

1 tip: I would create perhaps several apps:

  • 1 App for pure Virtual Devices, supporting only the capabilities provided by Athom
  • 1 App for sensors, with the freedom to combine multiple (sensor-)capabilities into 1 app
  • 1 App for modes, maybe give the multi-mode a new try
  • Specific apps for specific request. E.g. Garage doors, Swimming pools, etc.

What works:

  • Virtual Devices: Switch, Alarm, Blinds, Hifi, Light, Security, TV, Heater
  • Modes: Holiday, Away, Party, Event, Quiet, Movie, Sleep, Relax, Manual, Secure
  • Trigger a flow
  • Use the switch/mode status as a condition
  • Use the switch/mode in the 'then'-column

What doesn't:

  • Settings (or other) that makes some modes mutually exclusive (issue #3)

More information:

There is more information, including How-to's on GitHub Pages: https://arjankranenburg.github.io/virtual-devices/

Please report bugs on github: https://github.com/ArjanKranenburg/virtual-devices/issues

Questions can be asked on the Virtual Devices topic of the Homey Forum: https://community.athom.com/t/virtual-devices/1723

...or on Slack (@arielaxed)

virtual-devices's People

Contributors

allram avatar arjankranenburg avatar daneedk avatar dijker avatar philsniff avatar ps-nl avatar radiotechniman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

virtual-devices's Issues

Cannot assign to read only property 'onoff' of false

Homey software version: 1.2.2

Crash report:
TypeError: Cannot assign to read only property 'onoff' of false
at Switch.setOnOff (/general/drivers/switch.js:54:31)
at /homey-app/manager/drivers.js:197:13
at Object.drivers.(anonymous function).ready (/homey-app/manager/drivers.js:131:9)
at eventListeners.clientDriverMessage (/homey-app/manager/drivers.js:176:10)
at /homey-app/manager/drivers.js:26:41
at Object.Homey.ready (/homey-app/homey.js:1:1073)
at /homey-app/manager/drivers.js:25:11
at /homey-app/helpers/client.js:1:1035
at Array.forEach (native)
at process. (/homey-app/helpers/client.js:1:1004)

Modus change trigger not fired when manual changing modus

Hi,

I've got the following issue with version 0.6.3 for Homey version 1.5.3. The trigger for modus is correctly fired when a modus is changed programitically via flow, but not when I manually (phone or webinterface) change a modus.

Manually changing a modus will result in the modus being changed but not the trigger being fired for when the modus is changed to on/off.

Virtual Device "Door"

Requested by Werner via mail:

Zou je een virtual device "deur" kunnen aanmaken die de status "open"(open), "dicht"(close) en "op slot"(locked)?
Want ik heb zelf met behulp van de fibaro binary sensor en 2 dip-switches de mogelijkheid gemaakt om deze statussen uit te lezen bij mijn deuren.
Alvast bedankt!

Setting a Radio Station

Is it possible to create a button or slider to change radio station??
I have several radio station on my chromecast all on a Klik aan Klik uit remote.
But I also want to switch station from my mobile Homey app.
It would be nice if there was a button or slider to change the radio station from Homey Iphone app

Custom virtual device

hi arjan!

i am in the process of thinking how to automate or making my house aware of the things that happen inside the house. and the app virtual devices is a very big part of that proces!

the app already provides a very big selection of devices and modes you can add to make your house automated, but i do miss the choice to select which sensors are in the virtual device because all the virtual devices are pre programmed which sensors it can have, and the rest of the options are disabled by default. you also cant combine the modes and devices with eatch other to make one custom virtual device!

i would like to give you a example of a scenario where sutch a virtual device would be usefull. i own a ¨dumb¨ refrigerator that doesnt comunicate with homey but i still want homey to know what the tempreture of the fridge is and if the fridge is cooling and if the door is open.
so i would like to make a virtual device and give it 1 tempreture sensor, 1 door sensor, 2 modes, and 1 power sensor.

and in the flow editor i will make it that

power conumpotion is higher than 100W --> set mode to cooling
power consumption lower than 20W --> set mode to idle
when door is open for longer than 1 min --> send notification that door is open
and i will always see on the tile in the homey app what the mode is, what the temprature is and if the door is open.

when you make virtual devices by assining virtual sensors and modes to the device you can make any device smart, and that would be awsome! i dont now how to program or to make this so maybe it isnt possible to do but i wanted to tell you anyway.

Status Devices would be great

As an example... The Alarm Status
Armed - Guard - Disarmed - Alarm

Just a icon that dispays a status maybee even from a tag value

Changing intensity does not turn the device on

Reported by Stefan van Vugt:

When I manually change the intensity of a virtual device (iOS app or webbrowser) , the devices that I have coupled with a flow turn on and change intensity, the virtual device itself stays off but the intensity is changed though. Is this supposed to work this way?

Strange thing is, when I trigger a flow and let a virtual device change intensity, the virtual device does turn on then...

'Mode Changed' doesn't trigger from other flows

'Mode Changed' doesn't trigger a flow when another flow has turned the mode on or off. Only when manually turning the mode on or off.

Also it seems to me like "Mode is on" shouldn't trigger when another flow tries to set a Mode that is already on to on. Or is that just me?

Thanks for a very useful app.

Homey - Samsung Multiroom

Is it possible to connect the Samsung Multiroom system to a Athom Homey? So i can connect both systems to eachother.

request for curtains

Can you add curtains? I now use the blinds option to open/close my curtains but it would be nice if the icon shows curtains and the uses open/close instead of up/down.

Support for Tags

Love this app! would love it even more if the virtual devices had some of the tags available for real devices. Would this be possible?

Missing On/Off image

currently if the state is on or off it get's the same image. it would be nice to make a diffrence between them

'is on' card gives wrong result

Reported by Tjeerd Boudri:

Volgens mij zit er een ernstige bug in de beta versie van de app (v0.66). Wanneer je een flow maakt die reageert op een ingedrukt/veranderd trigger van een aan/uit knop en een 'is aan' card in de when dan is het resultaat true wanneer hij false moet zijn en andersom

Home Mode icon

Hi Arjan thanks for this app. Is it possible to add an "Home" Mode icon to the app?

Feature request: TILT Hydrometer

I'm trying to figure out some nice way to show data from my beer fermentation and using a Tilt hydrometer https://tilthydrometer.com/. The device needs temperature and some kind of measurement to store SG (Specific gravity). At the moment I'm using TiltPi and have made an mqtt flow in Node-Red and saving the two values into two different VD Thermostats but I would like to have some device where I can have both values in the same device and the SG need three decimals.
tilt

virtual alarm states

Hi Arjan. Please add virtual alarm states, like
STAY_ARM
AWAY_ARM
NIGHT_ARM
DISARMED
alarm_

multimode

The multimode is a great addition for me. Only the choices in icons are very limited and do not match the modes I want to make. Is there a possibility to add icons yourself. At the moment I use the same icon for all modes and because there is no text there, this is not workable. It would be nice if the text of the mode name is also shown. Or a text only display when there is no option of additional icons.
screenshot 412

Mode: Add trigger for changed

Requested by Fabian Huijts:
At my bed I have a double wireless switch, which I use as a 4 button-preset switch. (Lighting scene 1,2,3 and a Sleep mode).

It would be great if I could witch between sleep/awake mode with one button.
Now I have to program one button for "sleepmode on" and one button for "sleepmode off".

Homey's own card options are: "Mark as sleeping, Mark as awake, Switch between Sleep/Awake".

Is it possible to add this "Switch between Sleep/Awake" option? So if I press the button and the mode is on, it turns off and when I press the button and the mode is of, it turns on.

Conditions for modus not working

First of all, great app really enjoy it!

However, with the recent version 0.5.3 the condition check for modus fails. When a flow is triggered and the condition is that a certain modus is enabled, even when the modus is disabled the flow will continue. So basically I cannot use the conditions any more.

I've verified that other conditions still functions as expected and only in VD I have this issue. The weird thing is when a flow is tested the condition will show that it fails (red cross) as expected but the flow will continue. I've degraded to version 0.5.1 and I don't have this issue anymore.

Humidity Values

Hi Arjan,
Is it posible to add a device where we can add temperature an humidity values.
I want to use it for my itho mechanical ventilation.
Thanks
Jeroen
Requested in the app-store

A virtual device changed state trigger...

Would it be possible to create a trigger when any virtual device changed state ? The trigger would include tags that gave the device name, what changed and to what value (and maybe the old value).

I'm using virtual devices connected to my separate MQTT linked lighting system. I can create one card that updates any /many different virtual devices but the reverse is difficult without creating a flow for every light. If I had one card and was provided with the information of what changed to what it would save me many many flows.

Alternatively if I could drag all my different virtual devices into the 'if' trigger column and there was some identifier as to which one triggered passed to the 'then' column that would suffice too but I don't think that's possible currently.

A virtual sensor device would be nice too - especially as there's already a Homey 'sensor changed' trigger

Support for the 'alarm_motion' capability

Leo Spil reported:

Thanks for the amazing app, trying now many different kind of virtual switches, to get a perfect security system for our situation. For now there is 1 step what i can't find out nicely, its a virtual switch with the "alarm_motion" capability to get triggered by a flow, so i can insert normal z wave switches as an extra security feature which can trigger the alarm.

Conditions

It would be great to use the as condition.
I want to use it as a status for settings.
I want to set the device Holiday on when I'm away for a long period.
If it's on I can check in the condition to turn on the lamps when I'm away and it's getting dark

Virtual devices changed status not detected

Reported by Bart Wijers on Slack:
image
It turned out that the Pressed / changed trigger was not detected.
The 'LightsStudy' is a Virtual Device, class light, capability onoff

Why can a Virtual device turned on (with a flowcard) while it's already on?

Why is it possible to turn a Virtual device on, while it's already on? The flow runs multiple times.

knipsel
Even when I use 'Modus is niet aangezet', it often happens that the flow runs 2 times quickly after each other.

It can't be more 'on' than 'on', right?! So if you play the flow again it shouldn't be doing anything.

Add Previous value

From quakerix via the forum:

I'm using the Home Status multi mode, (home/away/sleep/vacation). And I want to have a flow that when I return from vacation X-Y-Z happen.

So I need a flow that triggers when status changes from VACATION to HOME. But I don't have any 'previous value' available in my flow. Could you make a tag on the trigger card that returns the previous value?

[Enhancement] Show visual confirmation when button pressed in Homey app.

Hi Arjan,

First of all, I would like to thank you for the nice app and all the spare time you are investing in VD.

My Problem
In the Homey OS X app, I see a visual confirmation of a button device when the button is pressed.

In the Athom Homey iOS app there is no confirmation when a button is pressed. Often when I press, my flows are not fired. (This probably has to do with the slow iOS Athom Homey app itself).

My Question
Is it possible to add a button pressed confirmation in the Homey iOS app just like in the OS X app, or is this a shortcoming of Athom's iOS app?

Toggle flow.trigger and flow.action

  1. In the if column I want to use (if changed) so i can trigger a flow from my phone and it doesn't matter if it's on or off. Just trigger the flow.

  2. In the then column (I want to set the device the other status)
    For example: If I got visit. I say "Ik heb bezoek". The flow with speech contains "bezoek" should set the device "Virtual Event" to on.
    With the same flow I want to trigger it of. So when I say "Het bezoek is weg" The flow with speech contains "bezoek" should set the device "Virtual Event" to off.
    Every night a 5AM I set with the existing action the status to off.

Both request may work independently. But keep in mind. When constructing flows you can create a loop.

Thanks for your great work

The app crashes frequently

I have version 0.6.8 installed on Homey with firmware 1.5.8
The virtual devices app keeps crashing and this seems to affect the flows where the virtual device (mode) is used to determine if the flow should be executed. The app crashed 8 times over the last 15 days.

Is there anything you can help me with to get this issue solved?

Thank you!

Push button

@ Arie, Is it also possible to add an option for push button devices? Just a virtual device, but one that turns off immediately after it is turned on. I have a workaround now by using flows, but a button like this saves flows. :)

Remember state after reboot

Homey Firmware: 1.5.5
App version: 0.6.6

When i reboot Homey, the state of the virtual devices(Alarm) is not remembered

Simple mode

Don't know how to call it... it's when we are away and we want to disable all fancy features when e.g. the oldies are babysitting...

Virtueal Hue dimmer switch

A Virtueal Hue dimmer switch... on-dim up- dim down - off . Inclusive once pressed on twice pressed on 3 pressed on. pressed dim up and hold dim up.

Not sure if its even possible, but would be great

Mutual exclusive modes

Currently the mode devices are acting the same way as virtual devices... But I would guess they are mutually exclusive; if one mode is selected, all others will be cancelled (switched off). Is it possible to add this to this app?

Trigger and condition for button is held down or released

Form erlandjack via Forum:

I wonder if it's possible to attach a multi-device with several buttons as shown in the picture. And create flow triggers and / or conditions cards like "button is held down" and "button is released"? (the pictures are made in Photoshop)

Request for virtual Sensor

It would be nice to have a device type Sensor (additionally to Device, State, State-Multi) where you can have multiple parameters, e.g. a virtual temperature sensor with temperature (number) and humidity(number). This would be helpful to save external values in a device (e.g. values from IFTTT)

Change Diplay Icon on Mode change?

is there a way to get the icon that gets displayed on the GUI to change to the icon of the mode selected? I have a multi-mode VD that is set to the mode of the house (Home, Away, Vacation, night). it would be nice to be able to see the icon for the mode be the main icon displayed on the GUI so that i know right off the bat what the mode is set to. not sure if it is possible with Homey, but thought i would ask.

App keeps crashing

Hi,

Started a few days ago, the Virtual-Devices app on my Homey is crashing 2-3 times a day... a restart fixes the issue for a few hours, but after that it crashes again.
I've upload a log after one of the crashes : 77cc8f58-037d-4398-964a-9abbb65aa9ae

Can you check what is wrong? Maybe it's a bug somewhere!

Regards,
Dennis

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.