Giter Club home page Giter Club logo

Comments (5)

tursoe avatar tursoe commented on August 19, 2024 1

Hello.

Im using some Dimmer Switches and always create 2 additional rules.

The first: push and hold on, immediately full bright.

The second: push and hold off, turn on but at low light.

The rules are in the bottom on this post.

My questien are, how can I'll make these rules fire with 2 differend sensors? In my livingroom I'll have 2 dimmers - one at each end and they are used in the same way with identical rules.

For make space for new dimmer switched and day/night rules I'll need to remove some of the old ones, therefor is it possible to combine several sensors in one rule with an "Or" command?

Best regards

Christian

"9": {
	"name": "Dimmer 1 - Full on",
	"conditions": [
		{
			"address": "/sensors/2/state/buttonevent",
			"operator": "eq",
			"value": "1001"
		},
		{
			"address": "/sensors/2/state/lastupdated",
			"operator": "dx"
		}
	],
	"actions": [
		{
			"address": "/groups/1/action",
			"method": "PUT",
			"body": {
				"on": true,
				"bri": 255,
				"ct": 366,
				"colormode": "ct"
			}
		}
	]
},
"10": {
	"name": "Dimmer 1 - Minimum on",
	"conditions": [
		{
			"address": "/sensors/2/state/buttonevent",
			"operator": "eq",
			"value": "4001"
		},
		{
			"address": "/sensors/2/state/lastupdated",
			"operator": "dx"
		}
	],
	"actions": [
		{
			"address": "/groups/1/action",
			"method": "PUT",
			"body": {
				"on": true,
				"bri": 20,
				"ct": 366,
				"colormode": "ct"
			}
		}
	]
}

from winhue.

Hyrules avatar Hyrules commented on August 19, 2024

Please open an issue for your question. This topic is for tips and tricks.

from winhue.

tursoe avatar tursoe commented on August 19, 2024

Sorry.
Ill just copy my last question from hue forum.
It's already answered I that forum, it's the trick with the two additional rules that I will shoy here.

from winhue.

Hyrules avatar Hyrules commented on August 19, 2024

Ok I interpereted the message as a question rather than a trick. No problem to leave it there then.

from winhue.

HemiBob avatar HemiBob commented on August 19, 2024

My tip is to use the “Daylight” sensor to improve the operation of motion controlled lights, or to control lights that need to come on at dusk etc.
The hub has a built-in sensor called “Daylight” which sets “Daylight: true” between sunrise and sunset.
Using this in place of, or in conjunction with, the ambient light level will improve the operation of motion controlled lights.
HOWEVER, to use this sensor you must configure it with your latitude and longitude so that it knows when the sun rises or sets at your location.
Once configured, there is a “configured: true” flag set but you can not read back your lat/long values for security reasons so if your rules are not working at the right times you need to reconfigure and try again.

from winhue.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.