Logger: homeassistant.components.websocket_api.messages
Source: components/websocket_api/messages.py:199
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 09:53:25 (2 occurrences)
Last logged: 09:53:25
Unable to serialize to JSON. Bad data found at $.event(Event: state_changed).data.old_state(State: fan.pervyi_etazh).attributes.preset_modes[2]=dict_keys(['off', 'low', 'medium', 'high'])(<class 'dict_keys'>, $.event(Event: state_changed).data.new_state(State: fan.pervyi_etazh).attributes.preset_modes[2]=dict_keys(['off', 'low', 'medium', 'high'])(<class 'dict_keys'>
Unable to serialize to JSON. Bad data found at $.event(Event: state_changed).data.old_state(State: fan.vtoroi_etazh).attributes.preset_modes[2]=dict_keys(['off', 'low', 'medium', 'high'])(<class 'dict_keys'>, $.event(Event: state_changed).data.new_state(State: fan.vtoroi_etazh).attributes.preset_modes[2]=dict_keys(['off', 'low', 'medium', 'high'])(<class 'dict_keys'>
Trying to set preset mode:
Эта ошибка возникла в кастомной интеграции.
Logger: custom_components.lunos.fan
Source: custom_components/lunos/fan.py:356
Integration: LUNOS Heat Recovery Ventilation (documentation, issues)
First occurred: 09:58:36 (1 occurrences)
Last logged: 09:58:36
LUNOS preset 'high' is not valid: ['eco', 'summer', dict_keys(['off', 'low', 'medium', 'high'])]
There is still no reaktion and no errors if i try to set persentage or turn off the Fan.
I have several Lunos e2 fans in my house. I am very happy about the possibility of controlling them easily via HomeAssistant with the hass-lunos integration. The control via the service fan.set_percentage with the levels 0, 33, 66 and 99 works wonderfully. I can also call up fan.turn_on with the preset_mode low, medium or high. In both cases, the fan goes into the desired state.
However, I now have the problem that the display of the fan speed in the feature area of the new tile card is not correct. At the low level, the tile card displays “50 %” and the feature area displays an icon for level 2. Otherwise, the tile card behaves as desired - medium and high are OK. The setting of the desired level via the feature buttons also works fine. However, if you select level 1 here, the display jumps to level 2 - but the fan is actually running at the desired low level. The display for level 1 / low is simply not correct.
Below is a picture. Küche is off (OK!), living room is low (incorrect display), toilet is medium (OK!) and HWR is high (OK!).
Does anyone know where this problem comes from and how it can be solved?
Hello everyone,I’m Steffen and new to Home Assistant. Sorry if this is such a stupid question, but where do I have to do step 2 in the instructions? “Step 2: Configure Home Assistant
LUNOS Controllers require a pair of switches (W1 and W2) to control the speed of the fans (as well as other features).
Configuration is required to assign the Home Assistant accessible W1 and W2 switches for the fan controller to use in
operating the LUNOS fan controller.”
Thanks in advance Steffen
haavhaal
(Haavard Haaland - Tech Lead for the Norwegian Lunos distributor)
27
Hi
I’m the Tech Lead for the Norwegian distributor for Lunos and thought I’m might be able to help with some of your questions.
There are two ways to integrate Lunos with Home Assistant (and other systems);
Via the Universal Controller (UNI-FT or UNI-RF) with a 2ch relay for example Fibaro Smart Implant
Via Smart Comfort (SC-FT or SC-RF) with a 0-10V controller, for example Qubino Flush Dimmer 0-10V
Option 1 - With UNI-FT/UNI-RF you’ll need to connect the three wires (black, red and grey) to the relay. Black is common and red should be connected to channel 1 and grey to channel 2 on the relay. NB the channels can not have any voltage, they’re purely binary inputs.
When correctly connected you’ll have 4 different fan levels available. These levels are decided by turning the “wheel” on the controller to the number that indicates the different m3/h air exchange you want.
Ch 1 and 2 OFF = level 0 (off or lowest level depending on the position of the “wheel” on the controller)
Ch 1 ON and ch 2 OFF = level 1
Ch 1 OFF and ch 2 ON = level 2
Ch 1 and 2 ON = level 3
Option 2; via SC-FT/SC-RF you’ll connect a 0-10V controller to the 0-10V input on the smart comfort. The wheel should NOT be in the position that says 0-10V, but rather the correct type of fan you want to control.
Connection should look like the picture in the following post (can only embed 1 picture pr post)
Then we get to programming. You can find the correct input values from the 0-10V controller to smart comfort in the picture below. As you can see the values are close to each other so I recommend measuring the voltage on the output from the 0-10V controller as there can be 0,1-0,2V (maybe even more) difference between input and output.
100% =10V, 50%=5V and so forth.
The values on the left side are with heat recovery while the right side are without heat recovery.
NB; you need to program the 0-10V controller with set values, non-dimmable.
Hope this helps
BR Haavard
3 Likes
haavhaal
(Haavard Haaland - Tech Lead for the Norwegian Lunos distributor)
28
Do you know if there is a way with 0-10V control to turn off ventilation completely? Maybe Stage 0 means that it is off?
Thanks!
haavhaal
(Haavard Haaland - Tech Lead for the Norwegian Lunos distributor)
31
Yes, you’re right. It should be possible to use 0-10V on the universal controller too. The reasoning behind splitting it to one control possibilty for each produkt is that with the smart comfort and 0-10V you will have a display that indicates the levels and modes, but with the universal controller you won’t. I’m a strong believer in having physical buttons/controls for the most essential functions (especially ligthing).
correct, stage 0 is OFF with smart comfort, but if you have humidity control that function will still override it. that’s one of the reasons why we, at least in Norway, don’t recommend humidity control unless that particular smart comfort or universal controller is located in a bathroom or other rooms/areas where the humidity fluctuates a lot AND the connected product(s) is used for exhaust air.
Two notes/comments on the posts above;
make sure that not all 4 LEDs on the smart comfort display is active at the same time with one of them with more intensity. that means that humidity control is active. I don’t know of a way to activate that via 0-10V commands. So I recommend to manually deactive it by a single touch on the symbol with two drops. if you want to use humidity as an input for control I recommend using an individual sensor.
If you want to have a way to manually adjust the level of ventilation with a universal controller it’s worth considering using the impulse input method instead. if not the physical button will not indicate the same as home assistant
This is amazing! I can’t wait to dive into this.
One question if you have the time, is the example relay that is mentioned in the github readme references the 5V USB “WiFi Relay Switch Module” (from Amazon) that can be used after it is flashed with Sonoff. I am having difficulty with this step (I have this unit in my possession) as I’m not sure what the “name” of this relay is in order to flash it with the proper file. Do you happen to know the chipset of this relay in question? It comes with the eWelink software natively. Thanks again!
Matthew
Converting from speeds to percentage
When converting a fan with 3 speeds from the old fan entity model, the following percentages can be used:
0 - off 33 - low 66 - medium 100 - high
Digged a bit deeper, the Problem: 33.333333333333336% is the returned value for low which is > 33% and so its mid… same for mid etc… i try to sort that out a bit on my own and maybe fork it if iam able to solve that
Nope, currently the integration reports 25% fan speed when its turned off and so 50% with low, 75% with medium and 100% with high… So for whatever reason, off is still counting as an state which SHOULD NOT be the case.
And the reason is found but iam unable to fix that (no python skills):
This one is return “off” as well, but this shouldnt be the case. So if someone knows howto remove a item from a list temporary JUST for this case, let me know and we have fixed the UI bug
Anyone with some experience with new Lunos devices branded I-VENT that now support cloud access and control of your Lunos devices? As far as I can see noone has been working on HA integration?
I’d like to implement this. Do you know if there’s a ZigBee or WiFi/Bluetooth variant of such a controller? I looked into Shelly products but the 0-10V Dimmer controller from them doesn’t seem to work with this solution.
haavhaal
(Haavard Haaland - Tech Lead for the Norwegian Lunos distributor)
36
I’m sorry for the late response. We use Qubino’s 0-10V Flush Dimmer. That works well.
Remember to measure the actual output voltage from the Qubino to make sure that it’s within the range for the different levels.
Okay, thanks! Have you ever managed to control the 5/SC-FT with it (not only the UNI-FT) for a multi-fan installation?
haavhaal
(Haavard Haaland - Tech Lead for the Norwegian Lunos distributor)
38
0-10V is the only way to control SC-FT. UNI-FT can be controlled via 0-10V but also via a 2 channel relay.
use the voltage values in my earlier post to get the correct levels/steps. if you do that the SC-FT will mirror the correct level that’s activated through home assistant. it will not work the other way around though. SC-FT will receive commands but not confirm back. you might experience that commands from home assistant won’t work after you’ve pushed a button on the SC-FT. that’s just temporary though. after and hour or two it will work again.
another note on the SC-FT. there’s no voltage value that for the functions that are activated via sun, moon, drops and window. you have to use logic blocks to imitate these functions and the SC-FT will not indicate/mirror anything.
it will not work the other way around though. SC-FT will receive commands but not confirm back. you might experience that commands from home assistant won’t work after you’ve pushed a button on the SC-FT. that’s just temporary though. after and hour or two it will work again.
Can you clarify what do you mean by SC-FT receiving commands and not confirming back? Are you referring to a situation after a button has been pressed? What’s the reason for this 1-2 h period when commands are being ignored?
haavhaal
(Haavard Haaland - Tech Lead for the Norwegian Lunos distributor)
41
From Home Assistant you will only send a certain voltage level to the SC. It’s not communication, just a command or an input if you like. HA has no way of knowing if the output from the SC is at the intended level.
When a button is pressed on the SC it changes the output, but the 0-10V input will not be adjusted/affected by that. Meaning HA doesn’t know that the level has changed.
I don’t know why there’s a period of “stubbornness” tbh.
Hi Haavhaal, is there a way of accessing the various sensor data from the device without using the diagnostic software with a laptop attached? Specifically an Nexxt-E.
Thanks
Hi,
I ve got an 5/UNI-FT and connected it to a Shelly Uni Plus. Works like a charm, but I got a problem with the Lunos Addon.
When I click on speed level 1 it will switch on correctly (switch 1 to on, switch 2 to off) but the entity will show level 2 is on. So all level switches work correctly but switching to level 1 will show level 2.
Any idea on this?
Edit: When I use “Fan Percent Button Row” Lovelace Card it will show all states correctly. But I don t understand why default HA won t show it correctly.
Could you please share how did you connect the 5/UNI-FT with Shelly Uni Plus? I have same LUNOS controller but I am new to smart things so my aim is to be able to control the fans remotely (from my phone or so).