Moving from HomeAssistant and have a Simple Lighting question

I have searched but gave up after getting sidetracked by almost every new thing I saw. So much new stuff to go through.
After almost 4 years with HomeAssistant, I am ready for a change. I am very slowly moving some devices to Hubitat. I have added my Hue hub and a couple of Zwave devices, a Zwave dimmer and an Aeotec Smart Energy Switch and a Minimote so I can get familiar with automating etc. I am able to turn all the devices on and off. I also managed to configure the Minimote as a button controller to switch several lamps.
I am now somewhat stuck with a Simple Lighting task and don't understand why. I want to turn on a Hue light when I turn on the Zwave dimmer and off when I turn the dimmer off. The lights the Zwave dimmer controls are unrelated to the Hue bulb. Simple Lighting shows "Switch turned On/Off" under the trigger. Is this failing because this is a dimmer rather than a switch? Any help in understanding this will be appreciated.

Can you you post your Simple Lighting Rule/s being used?

Outside of that I would be very interested in hearing why you are leaving HASS? I was told it has gotten better. Maybe you can do a “Reason for Migrating” thread, don’t want to derail this one.

I'm not sure how to post my rule. No YAML here :smile: Please let me know if the screenshot isn't what you are referring to.

Just quick update on moving from HomeAssistant.
Over the years there have been quite a few major direction changes that have meant redoing vast chunks or your setup. I just spent a week redoing much of my setup as I moved from an installed version to hassio. The hassio method is quite easy (comparatively) but you lose fine control. I just thought it was time for a change.

1 Like

Thanks for the info on HASS.

I don’t see anything wrong with the rule.
So that switch is actually being used to trigger both the other lights and the single bulb?

I see lost of people post pics of the rule screen, I assumed it was the best way to do it.

Thinking about it, you probably have a rule to turn on the other lights with the switch, why don’t you just put the lights and bulb in a single rule?

The dimmer switch is directly wired to some overhead can lights. I want it to also control one Hue light that is further into the room on a separate circuit. It was something I had set up in HA and would like to replicate it here.

It does seem like a simple request.

Silly question, by chance is the physical switch or power to that Hue bulb on?

Something maybe be up with the dimmer or bulb?
You might want to open another browser tab and look at the logs when you trigger it.

There are plenty of more knowledgeable folks with Hue bulbs and Zwave dimmers who may be able to help.

From within HE I can turn the dimmer on/off and any and all of my Hue bulbs. When it didn't work, my first reaction was to check the logs. The page is pretty much blank just a "--- Live Log Started, waiting for events ---"

The SL rule looks ok to me. Only thing I can think of to try is to remove the 0 from "After this number of minutes" and leave that field blank. If this fixes it, that's a bug that should be reported. Give that a shot and let's see what happens.

You either need to leave the Live Logs page open in a separate browser tab, or click on Past Logs to see historical live logs data.

I added the 0 to see if it would help. I had done it without first.

Interesting....

Can you try it in Rule Machine instead? Add a normal Rule:

  • Condition
    -- Wall switch on

  • Rule
    -- Wall switch on

  • Actions when True
    -- Turn on basement_stairs

  • Actions when False
    -- Delay 5 minutes (make sure to select the Cancel on Truth Change option)
    -- Turn off basement_stairs

I have seen a couple other posts about people struggling to get Simple Lighting working this way...wondering if there's a bug that needs to be addressed. Either way, Rule Machine should get you going.

What model Z-Wave Dimmer switch are you using? If you watch this Device Details page via the Hubitat web page, does the status of the switch change from "off" to "on" when you physically activate the switch?

This is a common issue with old Z-Wave switches. The newer Z-Wave Plus switches properly report physical status changes.

Good catch! If this is an older dimmer, he may need to add the Z-Wave Poller app.

1 Like

This is a non plus switch. It is an Enerwave ZW500-D if I remember. I do get logs

app:462019-02-20 06:08:05.714 pm infoTurn On & Set Level Wall when basement_stairs turns on anti-Turn On & Set Level
dev:332019-02-20 06:08:05.623 pm infobasement_stairs was turned off [physical]
dev:332019-02-20 06:08:05.571 pm debugdimmerEvents value: 0
dev:332019-02-20 06:08:05.568 pm debugBasicSet value: 0
dev:332019-02-20 06:08:05.551 pm debugparse description: zw device: 07, command: 2001, payload: 00
dev:142019-02-20 06:08:01.002 pm errororg.codehaus.groovy.runtime.metaclass.MethodSelectionException: Could not find which method setLevel() to invoke from this list:
public java.lang.Object hueBridgeBulb#setLevel(java.lang.Object)
public java.lang.Object hueBridgeBulb#setLevel(java.lang.Object, java.lang.Object) (setLevel)
app:462019-02-20 06:08:00.929 pm infoTurn On & Set Level Wall when basement_stairs turns on Turn On & Set Level
dev:332019-02-20 06:08:00.783 pm infobasement_stairs was set to 99% [physical]
dev:332019-02-20 06:08:00.764 pm infobasement_stairs was turned on [physical]
dev:332019-02-20 06:08:00.735 pm debugdimmerEvents value: 255
dev:332019-02-20 06:08:00.732 pm debugBasicSet value: 255
dev:332019-02-20 06:08:00.722 pm debugparse description: zw device: 07, command: 2001, payload: FF
app:462019-02-20 06:07:55.582 pm infoTurn On & Set Level Wall when basement_stairs turns on anti-Turn On & Set Level
dev:332019-02-20 06:07:55.500 pm infobasement_stairs was turned off [physical]
dev:332019-02-20 06:07:55.488 pm debugdimmerEvents value: 0
dev:332019-02-20 06:07:55.485 pm debugBasicSet value: 0
dev:332019-02-20 06:07:55.478 pm debugparse description: zw device: 07, command: 2001, payload: 00
dev:142019-02-20 06:07:20.338 pm errororg.codehaus.groovy.runtime.metaclass.MethodSelectionException: Could not find which method setLevel() to invoke from this list:
public java.lang.Object hueBridgeBulb#setLevel(java.lang.Object)
public java.lang.Object hueBridgeBulb#setLevel(java.lang.Object, java.lang.Object) (setLevel)
app:462019-02-20 06:07:20.211 pm infoTurn On & Set Level Wall when basement_stairs turns on Turn On & Set Level
dev:332019-02-20 06:07:20.021 pm infobasement_stairs was set to 99% [physical]
dev:332019-02-20 06:07:20.017 pm infobasement_stairs was turned on [physical]
dev:332019-02-20 06:07:20.004 pm debugdimmerEvents value: 255
dev:332019-02-20 06:07:19.997 pm debugBasicSet value: 255
dev:332019-02-20 06:07:19.986 pm debugparse description: zw device: 07, command: 2001, payload: FF
app:462019-02-20 06:06:49.440 pm infoTurn On & Set Level Wall when basement_stairs turns on anti-Turn On & Set Level
dev:332019-02-20 06:06:49.298 pm infobasement_stairs was turned off [physical]
dev:332019-02-20 06:06:49.283 pm debugdimmerEvents value: 0
dev:332019-02-20 06:06:49.280 pm debugBasicSet value: 0
dev:332019-02-20 06:06:49.261 pm debugparse description: zw device: 07, command: 2001, payload: 00
dev:332019-02-20 06:05:17.201 pm infobasement_stairs was set to 99% [digital]
dev:332019-02-20 06:05:17.181 pm debugdimmerEvents value: 99
dev:332019-02-20 06:05:17.177 pm debugSwitchMultilevelReport value: 99 ok
dev:332019-02-20 06:05:17.081 pm debugparse description: zw device: 07, command: 2603, payload: 63
dev:332019-02-20 06:05:03.767 pm debugafter settings: ['param4':'0', 'txtEnable':true, 'flashRate':'750', 'logEnable':true, 'param3':'0'], state: ['polled':0, 'flashing':false, 'bin':-1]
dev:332019-02-20 06:05:03.344 pm debugbefore settings: ['param4':'0', 'txtEnable':true, 'flashRate':'750', 'logEnable':true, 'param3':'0']
dev:332019-02-20 06:05:03.339 pm warndescription logging is: true
dev:332019-02-20 06:05:03.335 pm warndebug logging is: true
dev:332019-02-20 06:05:03.010 pm infoupdated...

I'm not sure I did this correctly but the RM may have allowed this to work. Many more steps to get this one going for just a simple automation. Thanks.

2 Likes

I had the SL app triggering lights with a plug using the same rule set up you had.

Hard to tell if it’s your dimmer or a issue with SL right now or a combo of both.

Simple Lighting and Motion Lighting have always been pretty reliable. :thinking:

I don't know where the problem lies either, although the fact that it works in RE says something. The switch is not plus and is not on the HE supported list but Zwave should just work. You may not have any of the extended command classes or fancy settings but the basic functionality should just be there.