Comments (4)
Ad 1. Yes, log level is per accessory, but newly paired accessories inherit the level from the gateway.
Ad 2. See https://github.com/ebaauw/homebridge-lib/wiki/Log-Messages. Even with level 0, you’ll still see the warnings and errors.
from homebridge-deconz.
Thanks for your reply!
Ad 1. Yes, log level is per accessory, but newly paired accessories inherit the level from the gateway.
I see, then I'll have to write a little script that changes the log level for all of them. (that could be a neat future feature to have a built in command for that)
But good to see that newly added accessories will inherit the log level from the gateway 👍
Ad 2. See https://github.com/ebaauw/homebridge-lib/wiki/Log-Messages. Even with level 0, you’ll still see the warnings and errors.
Perfect, thanks for the link!
closing this issue 🙏
from homebridge-deconz.
for anyone stumbling over this, here's a short python3 script to change the logLevel for all accessories and the gateway to 0
import os
import json
# the command to get a dictionary of all the accessories
accessories_command = "ui get /accessories"
# run the command and get the output
accessories = os.popen(accessories_command).read()
# create a list of the keys
accessory_ids = list(json.loads(accessories).keys())
# what to change for each accessory and the gateway
payload = {"logLevel": 0}
# set the change for each accessory
for accessory_id in accessory_ids:
os.system(f"ui put /accessories/{accessory_id} '{json.dumps(payload)}'")
# set the change for the gateway
os.system(f"ui put / '{json.dumps(payload)}'")
from homebridge-deconz.
Or, using bash
:
for i in $(ui get -al /accessories | grep /name | cut -d / -f 2) ; do
ui put /accessories/$i '{"logLevel": 0}'
done
from homebridge-deconz.
Related Issues (20)
- Didn't get Phoscon (RaspbeeII) work with homebridge-deconz HOT 6
- otau: self-signed certificate in certificate chain HOT 2
- Mystery Homebridge Button HOT 2
- VINDSTYRKA - VOC Density - where does it come from? HOT 8
- Log reporting "Programmable Switch Event: Single Press" every minute HOT 1
- request 1: /: api error 1: unauthorized user HOT 7
- SOMRIG IKEA only on botton in HK HOT 4
- Strange window covering behavior HOT 22
- TypeError: Cannot read properties of null (reading 'replace') HOT 12
- [deCONZ] Homebridge Button: Programmable Switch Event: Single Press HOT 3
- TS000F - Switching between Lights and Fan Type HOT 7
- Possible EventEmitter memory leak detected HOT 5
- Lidl Silvercrest HG06338 HOT 23
- Strange Log entry - "Warning: Request X: http status 404 Not Found" HOT 4
- Conbee II on hoobs .. this "Error" - what does it mean ?? Comes every min.. HOT 2
- Warnings - parameter, bri, is not modifiable HOT 1
- potentially stale api key HOT 1
- Strange behavior with adaptive lighting HOT 10
- Homebridge v2.0.0 beta > homebridge-deconz HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homebridge-deconz.