[APP] Fibaro - Your home is your castle (by Athom)

Because I am very forgetful, I had to search briefly in the forum.
If you enter 5 zeros (00000) instead of the five-digit code for the inclusion, then the wall plug should be included unsecure.
And if the flood sensor is also included unsecure, or the flood sensor is included secure and parameter 78 is adjusted, then it’s possible to you use associations like @Osorkon mentioned.

With other SmartHome gateways it’s possible to choose the devices should be to included securely or unsecure, but not (yet) with Homey. That is why @Edwin_D has made a request:

1 Like

Okay, so if I include the plug with 0000 I can then set a direct association,?
How would I do this?

The association must be set in the advanced settings of the flood sensor.
But to be able to give you more information we need to know the firmware of the flood sensor. Didn’t know it before.

Sorry, but your case is really complicated… :joy:

So please have a look which firmware is installed.

The one I have connected says firmware version 3 in Homey
I have two more unconnected at the moment but will assume they’re the same for now!

So it appears I want to associate with 2nd Association Group on the plug (which is now connected to Homey unsecured). Still not sure exactly how i do this tho! I see the association groups in advanced settings, but not sure what to enter

Ok, I guess it’s 3.2 or 3.3 and not 3, because 3.0 was never released.

Open the advanced device settings of the flood sensor → open Group 2 → fill in the Node ID of the plug → Back → Wake up the flood sensor → Confirm with the check mark in the upper right corner

If this is done and it was confirmed with “Settings were saved” then please test it if it works.

Odd. It just says 3, but assume you’re right
I’m assuming Node ID is Device ID?

I entered the DeviceID in the settings you said (46 in my case) and tested it. Nothing :frowning:

The complete firmware no. is listed in 2 lines.
Advanced Device settings

Developer → Devices
image

Node ID = Device ID
Node ID in Developer
Device ID in Advanced Device Settings

  1. Did you checked the security standard of both devices?
  2. After confirming the changes, was the notification „Settings were saved“ shown? Or an other notification?

Please post screenshots of the advanced device settings of bot devices.

I got the green success bar when saving. I woke the device both before and after saving by activating the tamper alarm

Plug

Sensor:


Fibaro usually lists its devices as multi node device even if they are not. So setting the id to 46.1 may do the trick.

And another thing, if saving didn’t work the first time, the settings may list the association even when it is not actually set - and it won’t save it either in latter attempts. Changing it and saving it to something else and then saving the right one may also help.

1 Like

Amazing! That seems to have done the trick!!

Now a follow up question… Is there any way to make this “lock” so that if the flood sensor alerts the plug switches on, but doesn’t switch off until manual intervention?

I know I can do this in Homey itself but would prefer to get this via association, and if it stops the moment the the alarm stops then my flood is going to keep happening!

I do not have much experience with associations with anything else but buttons, but usually the associations are pretty straightforward. They are not meant to be as smart as Homey. Also the socket does not really know what turned it on or off, so I think there’s no other way then to use Homey for the extras logic.

Homey does see what the associations have done, so there’s nothing from keeping you to add extra logic to the mix. So if you see the flood sensor arms and turns on the socket you can have additional logic to immediately turn the socket back on if some one or some thing tries to turn it off.

Yeah, I understand that, but with a flood sensor, you would assume that it would force the plug to on and stay on given the main use case

How do I get Homey to act on just the association switch rather than a manual switch?

Well, just listen to the flood sensor alarm? Or: something like:
if socket is turned off and flood sensor alarm is on turn socket on.

Remember, the flood sensor probably cannot see the socket turns off, let alone know that isn’t what you want. And the socket does not know it should check the flood alarm is still on.

The association does that, if the alarm is on socket is on (which is what I want)
But in the use case (to detect floods and activate a solenoid shut off) the water could plausibly drain away, meaning then the alarm goes off but the problem still remains, so re-causing the flood and additional damage
I need the socket to only shut off with manual intervention

Yes, I understand and your use case is valid. But you cannot create such complicated scenario’s using associations alone. They are simple trigger → action commands without any logic to guide it.

You could have the flood alarm enable the flow that will block any other things, and the intervention will then be to disable the flow again. Or you could make use if a variable signalling the system is in normal or blocked mode.

Thx @Edwin_D for helping out!

Just for info, there are two different green bars when saving.

  1. Settings were saved
  2. The settings will be saved at the next wakeup of the device. (Approx. wording)

In the second case the changed settings are not saved yet, even if the changed settings are already shown in the advanced device settings. (Mentioned already by Edwin)

This isn’t useful.

The firmware of the sensor is 3.3:

Btw, the WakeUp method depends also on the firmware!

Is this information based on practical experience? Or is it just a guess?
If it is a guess, why not just try out the function?

No, this is after the test. It turns off when the water goes.

Ok, a possible workaround is to use a flow:

When…
– The water alarm turned off
Then…
– Turn on WP with 3 s delay

The delay is used to ensure that the plug was definitely switched off first by the association and can then be switched on again a few seconds later. This is to prevent the “Off” and the “On” command from being sent at the same time.

Oddly, I’ve just tested this again and it’s now no longer working… has anything changed in the past 10days that might have caused the association to break?

EDIT: Just set up a second flood sensor and that now works with 46 association (not 46.1). So changed the other one back to 46 and still nothing… very odd

EDIT2: Okay, after changing and resaving a few times this seems to be working with 46, not 46.1 (which is what made it work before)… wonder if a recent update changed this somehow

Now I have a slightly different issue related to the flows.
Per discussion above I made a flow to turn the plug back on if it is turned off (basically forcing it to stay on if activated), with an override flow for manual intervention. Figured this was marginally more robust that @DirkG suggestion of using the water alarm, as I don’t need to wait for the delay)

The problem I now have is that it doesnt seem to work with the association driven input. It works absolutely fine if I run a flow which tries to turn it on / off, and even works if I use the physical button to try and turn it off, but if it is turned off by the association turning it off when the water is removed… nothing
Any ideas?