Skip to content
This repository has been archived by the owner on Jul 18, 2020. It is now read-only.

Cannot add certain conditions that are nested inside of "state" for Lutron Aurora Dimmer #278

Open
agentorange96 opened this issue Feb 9, 2020 · 5 comments
Assignees
Labels
enhancement An enhancement is an improvement to something that already exists in the app.

Comments

@agentorange96
Copy link

Your setup

WinHue version : 3.0.4773.0
Bridge api version : 1.35
Sensor model : Lutron Aurora

Expected behavior

In the visual rule editor, I select my sensor, state->value->expectedrotation
I do something with this. (equal, gt/lt/etc) I click add and it applies it to state->value->expectedrotation

Actual behavior

In the visual rule editor, I select my sensor, state->value->expectedrotation
I do something with this. (equal, gt/lt/etc) I click add and it applies it to state
This doesn't work because state doesn't accept this as a value.

Steps to reproduce the problem

  1. Create a new rule
  2. Select a sensor: A Lutron Aurora dimmer
  3. Attempt to set a rule based on something inside of state->value
    For example state->value->expectedrotation
  4. Click "Add"
@Hyrules
Copy link
Owner

Hyrules commented Feb 10, 2020

Can you post a json export of this particular sensor ? I would like to see the structure of this sensor. thanks.

@agentorange96
Copy link
Author

Yeah, no problem! I am able to modify existing rules with this switch without WinHue complaining if that's helpful information. (So I just made a rule in another program and modified it with the editor, since I was too lazy to learn the advanced editor.)
This particular switch actually uses two sensors, so I made sure to include both parts. However, the button sensor is pretty standard and WinHue handles it just fine.
Thank you!
LutronAurora.txt

@Hyrules
Copy link
Owner

Hyrules commented Feb 10, 2020

Ok first time I see this kind of sensor. Problem with sensors is that they seem to have different properties from sensor to sensor. It's normal that you can see the sensor and it's kinda normal that you cannot select is properties because they don't exist in WinHue. I will have to find a way to deal with this in WinHue and not having to create a new sensor everytime I stumble upon someone with a new sensor kind. It's borderline bug and feature request. I'm not actively developping WinHue 3 at the moment just trying to fix bugs as they come. I'm working ( working is an understatement at the moment) on a new version of WinHue with .net core 3.X trying to improve on what's already done. I have an idea how to deal with this. I will see what I can do about this issue.

@agentorange96
Copy link
Author

Yeah, at the very least it might be good to have dynamic sensors so to speak in V4. (Even if you don't get to it for V3) I don't think it's reasonable to expect one person working on this, I'd assume in your free time, to be able to keep up with every sensor that comes out. I very much appreciate your work btw! 😀

@Hyrules
Copy link
Owner

Hyrules commented Feb 10, 2020

Thanks. I think my idea will work. for the next version. A word of advice though if you use an old bridge I suggest you get a new one because WinHue will not support them as soon as I have the time to release the next version for the WH3 i mean.

@Hyrules Hyrules self-assigned this Feb 10, 2020
@Hyrules Hyrules added the enhancement An enhancement is an improvement to something that already exists in the app. label Feb 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement An enhancement is an improvement to something that already exists in the app.
Projects
None yet
Development

No branches or pull requests

2 participants