justin-caldicott / hue-deploy Goto Github PK
View Code? Open in Web Editor NEWSimple deployment for Hue automations and resources
Simple deployment for Hue automations and resources
Or when a resource is referenced by the wrong name. e.g. b3-switch
instead of b3-bed-switch
.
The deploy will have errors when it attempts to references via resource names that haven't been replaced. But these can be easily lost within the general update messages.
I typically find myself running deploy a few times and if there are persistently updates listed, I know there was something amiss.
Resulting in all resources being deleted!
(Luckily only did a preview, so avoided it..)
Rather than missing body. It results in a persistent diff.
Workaround is to specify an empty body, e.g. body: {}
The owner of rules is APIKEY - this is used to track ownership of them, given there are no other suitable fields available to achieve this.
Currently when you change APIKEY, the rules become untracked. This results in them not being created, because the full name is seen to exist, but also to be excluded, they're not owned by hue-deploy.
We should make this nicer.
All of the rules/schedules I've needed so far have method: PUT
. This will make the typical config shorter.
We should have a remove command to remove all deployed resources cleanly.
schedule
apples
rule
apples
is OK.
schedule
apples
schedule
apples
is not OK.
The gateway allows to authorise third party apps to generate keys for a 60s window. It would be nice to make use of this when setting gateway info. Especially as API KEY should be unique to hue-deploy.
Added two new ones for christine-charger on/off, but didn't remove the old ones for office-heater on/off.
Scenes are group specific and get ids like 1, 2, 3, etc.
We don't currently look those up, so it doesn't work when we try to include the scene name in a rule action, for example.
We should substitute them, like with other resource names, case insensitive.
Workaround: Use the ids directly.
So these can match rules.
Would be really handy, so don't have to lookup id and do it via insomnia.
CLIPGeneric flags would be the most useful, for my use case. But obviously don't want this capability to be too specialist.
It's probably OK that the feature is for CLIP sensors only, as they're regularly something that's hard to control and usually the basis for a lot of automations.
Important to also have GET features.
Need to run it a second time for it to resolve the id.
To pick up errors earlier.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.