Comments (10)
I've added support for RGBW published as red,green,blue,white (each in the range 0-255) in version 1.0.10. Hopefully that will help with Tasmota. It's also now possible to use setOn/getOn in combination with setRGBW/getRGBW (and setRBG/getRGB and setHSV/getHSV). I'm interested to know how you get on, and happy to make further changes (time-permitting) if helpful...
Looking at the Tasmota wiki, I think it may need the white component published as a separate topic OR the RGBW published in hex.
from homebridge-mqttthing.
Version 1.0.11 can now publish RGBW in hex (use topics.setRGBW
and hex
or hexPrefix
), or as a separate component (use topics.setRGB
and topics.setWhite
).
from homebridge-mqttthing.
from homebridge-mqttthing.
mqttthing supports generation of red, green ,blue ,warm_white and cold_white components now (in addition to RGB and RGBW) - but still not just CWWW (unless you process brightness and colour temperature yourself). Adding support for 0-255 levels for warm white and cold white components, calculated from brightness and colour temperature, is next on my list (and should be easier than RGBWW was).
from homebridge-mqttthing.
mqttthing doesn't currently support extracting RGB or RGBW values from the hue, saturation and brightness exposed by homekit. Currently the options are either to publish these in separate topics, or to combine them a single comma-separate 'HSV' topic (which should really be HSB - I will probably rename this in a future release).
My strips are all RGB currently, and I perform the HSB to RGB conversion in the ESP8266 code. I've experimented (with good results) with RGBW strips by taking min( R, G, B ) away from R, G and B and using this as the W value. While this never achieves full brightness (with all of R, G, B and W on full), it gives much better whites (and near-whites) than an RGB strip.
I'm surprised that there are controllers that accept HSB values (which they presumably convert to RGB internally) but do not have the logic to extract a W component. I'd prefer either to publish unprocessed HSB as I do now (and leave any W channel extraction to happen during conversion to RGB), or to publish RGB or RGBW. Can the tasmota accessories accept RGBW?
from homebridge-mqttthing.
Yes,
The Tasmota wiki says you can set arbitrary decimal values per channel, use hexadecimal values for multiple different configurations including RGBW, or use HSB so I'm guessing hexadecimal RRGGBBWW would do it and then you see the brightness in a separate command.
The Tasmota firmware also has a colour temperature command for strips with two white colours (I presume to emulate the Hue strips with 6 channels).
from homebridge-mqttthing.
Great I’ll test this today and let you know how it goes.
from homebridge-mqttthing.
I've updated to 1.0.11 and tested RGBW with decimal and hex values, both are working well and using all of the channels. I'm getting some strange colors in some places but I think that might be because of the strip I have (warm white and quite high output on the white channel as well).
I think any compensation for the white colour temperature and output should be done by the Tasmota firmware right? EDIT: Created an issue on the Tasmota repo for this.
Any thoughts on doing a mode for a CWWW strip? That would be the same kind of device as a Philips Hue White Ambiance. There are also some 6 channel strips which do RGB,cool white, warm white.
I'll let everyone know on the Tasmota wiki that you've got a good implementation for MQTT+homekit as i'm sure i'm not the only one looking to set things up this way.
from homebridge-mqttthing.
Hi David,
CWWW refers to a two channel light, cool white and warm white in one strip.
from homebridge-mqttthing.
Feeling stupid now - of course it does! :-)
I will give that some thought...
from homebridge-mqttthing.
Related Issues (20)
- Window shade Confirmation Period (ms)
- After updating node.js to version 20.9, the plugin displays a message when running homebridge HOT 2
- value not changed in plugin
- understanding how to use Warmwhite and Coldwhite LED Strips HOT 1
- changeing type from Light bulp - RGBW to White Dimmable does not change set String
- shutter stop button
- Names in Homekit keep resetting with v1.1.46 HOT 20
- Options ignored
- Shelly Plus2PM in Cover/Roller-Mode HOT 1
- Device Re-Pairing After Update
- [Request] Posibility to invert window cover set position HOT 1
- Getting current state of window covers on Homebridge startup HOT 1
- delay between homebridge and homekit
- Consumption above 12000W is ignored
- unable to see logs
- unable to correctly configure thermostat HOT 1
- MQTT Error: AggregateError HOT 1
- Alternative accessory type for garage door HOT 4
- Multiple topics for single property HOT 1
- can’t get status light on or off at homekit HOT 2
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-mqttthing.