-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Virtual devices are not showing up #108
Comments
Could you provide a dump of your SysAP configuration as described in the README? |
Hi, here is my Dump: Dump And this is from monitor when i try to switch a virtual device through sysap webinterface:
ps: you can find the virtual devices with searching "virt_" as a all gave them this prefix |
Hi, thanks for the detailed dump. According to the monitor output, you switched the device with serial number This component relies on function IDs and pairing IDs to assign free@home devices to the correct Home Assistant entity (light, switch, climate, binary sensor...) The absence of this information for virtual devices makes it impossible to create the "correct" device in Home Assistant. Integrating these kind of virtual devices into this component would require a major rework of the config parser, without knowing if it is possible at all. May I ask for which purpose you want to use virtual devices in free@home? I would recommend that you try to setup whatever you want to accomplish through Home Assistant instead of free@home. I bet there's a way to implement your use case without free@home virtual devices. |
Hi, My usecase is the following: Or is there another possibility for my usecase? Thanks in advance |
same here, i got the 10" wall panel and got some external devices that i want to switch with, therefore i created virtual devices that can be displayed on the panel |
There should be another way to do this, by using the emulated_hue component. If you configure The simulated Hue bridge then exposes devices, scenes, scripts etc. from your Home Assistant to free@home: You should then be able to drop these devices to your floor plan or add them to your wall panel. You may want to take a look at the emulated_hue docs in order to find out how to select which entities to expose to free@home. A downside of this approach is that everything (scenes, covers, automations etc.) appears as a light bulb in free@home. The virtual devices approach has support for more device classes, however this is not yet implemented in this component. |
Just as some feedback on this question:
In free@home it is possible to connect many other devices and systems that are integrated by using the virtual devices. For example Motionblinds can be connected to free@home and are shown as "native free@home" devices, by using the virtual devices. (yes, you can connect motionblinds directly to HA as well) In my openhab / nodered setup I use a free@home virtual device to select the zones I wish to clean and the start / dock mode. I was hoping to eliminate the nodered part, but it seems I will have to continue using it. |
Hi, as the emulated-Hue way to work between HA and F@H is currently (6 months I guess) broken I would really like to ask if the "virtual device" way can be checked again. I'm not python-programmer but I have a deeper understand of pogramming-languages (js, php). I can play around a lot at home if it helps regarding F@H, HA, Hue, scripting and so. I saw several tutorials to interact with F@H (virtual devices) and OpenHAB and Node-Red, but an integration in HA would be awesome ... even if it will stay an advanced feature with no simple to use WebGUI. |
Hi, I just got a working bi-directional communication up between F@H and HA using Node-Red (websocket and Rest-Api) and a virtual device (switch). :) |
Why exactly is emulated_hue broken? It works fine for me. |
Hi, look e.g. at #144 and the links in one of the comments. So it is not a freeathome-Probleme, it really seems to be that something in HA after 2022.6.7 changed realted to emulated_hue. |
Hi @derjoerg, Im very interessted in your solution, because I use virtual devices on my 7" panel also to control 3rd party devices via openhab - but I want to (fully) migrate to HA. in openhab the FH binding allows to integrate vitual devices - so I didnt have to go via nodered. Now maybe - till virtual devices are shown in this integration (see latest issue) - maybe your workaround fits my needs. Thank you in advance for your efforts... needless to say, I am no specialist in nodered - but I somehow manged, to feed a virtual inverter in FH via openhab/nodered. |
Hi @KKlausl, So there are two ways to consider:
For the first topic (I used a switch for that):
Now the other way round (I use this for bi-directional virtual devices, but also for the doorbell, the fire- and co-alarm, the movement-sensors, and for some automated lights if I can restrict them by a button to stay on)
c. In the function tab define the logic, just remember, you have to send an array with payloads in the correct order
I hope this helps |
Hi @derjoerg, |
Hey guys could you make it work? on my side virtual devices are exposed to HA which is amazing. But If I try e.g. to activate a switch (actuator) on both sides free@home or HA, the state doesn't change on the other side and goes back to previous state. |
I had a similar problem, which seems to be caused of free@home. Solution was for me, to „tweak“ a Backup File and reload it, see here:[ Link] (https://community.openhab.org/t/busch-jaeger-free-home/31043/559?page=28). Maybe this works for you too - of you have the nerves ;)). |
Hi https://github.com/derjoerg What a great suggestion to get the interaction between HA and F@H improved; I am having an issue getting step 7 with the BIG "function' to have the correct syntax; Node Red is reporting an issue; would you mind re-checking your example code "In the Start tab" ? and advice what you mean with the function TAB (you mean the "On Message" tab ?? THX |
Hi @alexio70, Here is the corrected code for the "On Start" tab (and yes, with function tab I mean "On Message"):
|
Hi https://github.com/derjoerg What a great suggestion to get the interaction between HA and F@H improved; I am having an issue getting step 7 with the BIG "function' to have the correct syntax; Node Red is reporting an issue; would you mind re-checking your example code "In the Start tab" ? and advice what you mean with the function TAB (you mean the "On Message" tab ?? THX |
Hi https://github.com/derjoerg Many many thanks for your swift reply; that really helped me a lot !! Mvg Alexio |
@derjoerg I am having a hard time to make the Node Red websocket in node connect to my free@home API. In the free@home Access Point I checked the Local API to on, and with this (cryptic) user and my default password I am able to Authorize the swagger local interface; with the same user/ password it doesn't connect when I follow step 3. Create a "websocket in" node is the ! (exclamation mark) intensionally mentioned? and how about the []? the user supposed to be the user mentioned at local API, right? I have tried a variance of this but no succes... my password starts with @, could that be an issue? thanks for your help |
Puh, a lot of question ;) the exclamation mark is just a typo, ignore it I'm not 100% sure, but I would say that @ in your password is the problem. The syntax looks like this: After a quick lmgtfy |
clear; how about the node itself: Listen on/ Connect to? |
As stated above:
|
YES ;-) connected thanks @derjoerg |
@derjoerg I have tested now 2 type of devices: Now the problem one...;-) "channels": { Filtering on FFFF4800000B in the "BIG" Function node it seems there is no "datapoints" in the JSON because it doesn't capture the payload[]. Do you have any idea on how to capture the right rocker of a double sensor unit? Should it be connected to a virtual device? |
@alexio70 : Till now I never worked with the sensor units, neither in HA with the freeathome-component nor in NodeRed From my perspective I do as much as possible directly in HA and only use my "NodeRed path" for the bi-directional stuff (no need for emulated_hue) and for "not yet implemented" stuff. E.g. I used my "NodeRed path" for the firealarm, but till the last update from @jheling it is now natively in the freeathome-component, so I can rely on that. |
I use the @jheling integration as well but the right rocker is also not exposed as a sensor; only if I connect Scenes to it... |
for bidirectional stuff (mainly Z2M Lights) I use DIYhue now, because it seamlessly integrates in BJ free@home (as native Hue component) and lights can be connected ... |
Hi,
i added some Virtual devices to my SysAP. Unfortunatelly those are not showing up in HA.
regards Felix
The text was updated successfully, but these errors were encountered: