I have a piece of rgwb strip of about 50cm which is a leftover from my showerproject
could send it to you (assuming you are dutch?)
If you are willing to buy one, I will support with donation 
That will do. Just send you my address by PM.
I ordered one a long time ago but Aliexpress never delivered. Had to cancel and get a refund. I have some more stuff that seems to have gotten lost between China and my home address due to Corona so I dont feel like ordering more stuff right now. But thanx anyway. With the strip of @zakraket I should get the job done.
An initial response to explain how it should work. Iâll test it further if I have a proper RGBW LED strip to test with if it actually works as intended.
It should not work that much differently from the official Shelly app. In Homey setting a color will set the color of the RGB LEDS to that color. The color wheel in Homey with predefined colors is a bit weird though as the colors on that wheel are not full blue and green (red is 100% red though). But using the color picker from the device should give you almost the correct color. I say almost because Athom choose to use a percentage based hue capability while hue is a integer between 0 and 360. So there are some rounding errors causing a slight deviation from the desired color but this is almost unnoticable.
The brightness of the colors are controlled from Homey using the dim capability which is similar to the brightness (or gain) setting in the Shelly app.
The W LEDS are controlled using the temperature wheel or flow cards. This is a bit strange since the Shelly does not actually support color temperature but just dims the white channel. But setting the temperature to 100% will completely dim the white channel. Setting the temperature to 0 will set the white to full (this may seem reversed compared to the Shelly app).
This is where it starts to get weird and where I need to test this myself. It should work as described above. You will need to set the color of the RGB LEDS to red and the light temperature to 100 (to disable the white channel). Are you sure you have set the white channel to 0 when you want to use colors (by setting the temperature to 100 in a flow).
What the toggle white mode does when changed to on is set the gain on the RGB channel to 0 and set the white channel to 100 (similar as in the Shelly app with the two sliders) and visa versa when set to off. The behaviour you are seeying seems to be different from this.
Which brings me to my conclusion. When I wrote this driver I tested it with a certain RGBW LED strip which seemed to behave differently then yours. I do not have this strip available anymore so I can test further. But perhaps a different LED strip causes these unexpected results you are seeying. I hope to know more when I test it with your leftover LED strip.
Okay, so the tempsetting (0-100%) dims the white channel. Seems to work. If thatâs how it works, thatâs fine, at least I know what to do.
The problem with the colorwheel was I think in my case that firstly the warm white channel did not dim (which I now know can be done using the temp). I also see that the color wheel seems to contain slightly different colors and not 100% green/100% blue, but thereâs also an option to choose from the full rainbowcircle. So that problem can be tackled too.
Did a bit of testing with a flow that:
- set a temperature to x% AND
- dim to x %
When flow 1)
- temp 0%
- dim 0%
Should give only warm white: works always
After running flow 1, run flow 2)
- temp 100%
- dim 100%
Should dim warm white channel, + set 100% RGB channel, but: dims the whole strip to OFF, only the second time I run the flow I get 100% RGB (cool white light)
It âforgetsâ a previous set color, but that seems kinda logic since setting 0-0-100 to 0% results in 0-0-0 which does not contain a specific color anymore.
When I add to flow 2)
- set a color (to red)
and run the flow after first running flow 1 then I see the strip dim fast from warm white to dark to red
When I change flow 1 to:
- set a temp to 0%
- dim to 1%
This should keep the red color active. When I then run flow 2 it dims warm white to 0, but leaves RGB on 1% red which should be 100% red. Running the second time turns red to 100%
I will send you the strip today
I have received the strip and I think I tackled the issue. Are you technically capable of doing a command line install from the master branch on GitHub to test this?
If not, Iâll just push it to the app store under the assumption itâs fixed.
No I canât, sorry
v1.20.4 - 2020-06-05
Fix for setting white channel on Shelly RGBW2 Color.
Cant test now also, because I had to remove the strip from the ceiling (since iâm still building). Will be a couple of days
Iâm looking for people who are willing to install a test version of the Shelly app and see if they run into any issues. The test version can be found here. Next to some new functionality there is a lot of code refactoring done which I would like to see tested before pushing it live. The change log looks like this.
v1.21.0
- BREAKING CHANGES: Deprecated the device âAction eventâ triggercard and replaced it with a generic âAction eventâ card which is not device specific but contains the device name as token. This is easier to maintain. Please update your flows by replacing the device specific card with the triggercard from the app. The functionality for the device specific card will be removed with the next major release.
- Added support for the new Shelly i3 (thanx to domotica-shop.nl for sending me a device).
- Added a new triggercard that can trigger a flow when a device is unreachable for a specified number of minutes (under device settings). This is only available for non-battery operated devices that are being polled for their status.
- Lots a code refactoring for easier maintenance.
Iâm to impatient. If no one offers to be a guinea pig I guess everyone will be a guinea pig. Iâm pushing it to stable and will see what happens.
v1.21.0
- BREAKING CHANGES : Deprecated the device âAction eventâ triggercard and replaced it with a generic âAction eventâ card which is not device specific but contains the device name as token. This is easier to maintain. Please update your flows by replacing the device specific card with the triggercard from the app. The functionality for the device specific card will be removed with the next major release.
- Added support for the new Shelly i3 (thanx to domotica-shop.nl for sending me a device).
- Added a new triggercard that can trigger a flow when a device is unreachable for a specified number of minutes (under device settings). This is only available for non-battery operated devices that are being polled for their status.
- Lots a code refactoring for easier maintenance.
Do you plan on adding Shelly Dimmer 2?
The dimmer 2 is not released yet but see the info below about missing devices.
Missing devices
Allterco Robotics, the company behind the Shelly devices, is releasing new products very often. If you want a device added to this app which is currently missing you have three options:
- Wait for the API documentation to be updated. Based on the documentation I can add the device. Allterco Robotics is slow in updating their API documentation however.
- Donate me money so I can buy the device or send me the device itself so I can add support using the actual device.
- If you own the device you can send me the output of http://yourshellyip/status . This tells me the capabilities and the way the API is implemented for that device.
@Phuturist never reported back, but reboot works again.
I am using a i3. I dont know how i can use it in a flow when a input is âtrueâ the flow is : when > action event. And device is i3 and? Than⌠is it also possible to add the status of the switch in the dashboard?
Thanks for the great app
As far as I can tell the Shelly i3 is unware of the state of the switches connected. It only allows you to filter on the actions it recieves and forwards to Homey using the action event token (which for instance is double_shortpush_2 indicating a double push event on input #2).
Could be I missed something though. Just to be be sure, could you post the output of http://yourshellyi3_ip/settings .
If Iâm not mistaken about this a possible solution is adding a virtual switch and track the state of this switch based on the events. I might even be able to do this in the code and add a on/off device for each input come to think of it but it would not be foolproof as the Shelly i3 just can not be sure about the state of the connected switch.
I use it as a door sensor. If the contact is closed, i can see the state on the shelly. So i thought maybeâŚ
{âdeviceâ:{âtypeâ:âSHIX3-1â,âmacâ:âA4CF12F47665â,âhostnameâ:âshellyix3-A4CF12F47665â,ânum_inputsâ:3, ânum_outputsâ:0},âwifi_apâ:{âenabledâ:false,âssidâ:âshellyix3-A4CF12F47665â,âkeyâ:""},âwifi_staâ:{âenabledâ:true,âssidâ:âMywifiâ,âipv4_methodâ:âdhcpâ,âipâ:null,âgwâ:null,âmaskâ:null,âdnsâ:null},âwifi_sta1â:{âenabledâ:false,âssidâ:null,âipv4_methodâ:âdhcpâ,âipâ:null,âgwâ:null,âmaskâ:null,âdnsâ:null},âmqttâ: {âenableâ:false,âserverâ:â192.168.33.3:1883â,âuserâ:"",âidâ:âshellyix3-A4CF12F47665â,âreconnect_timeout_maxâ:60.000000,âreconnect_timeout_minâ:2.000000,âclean_sessionâ:true,âkeep_aliveâ:60,âmax_qosâ:0,âretainâ:false,âupdate_periodâ:30},âcoiotâ: {âupdate_periodâ:15},âsntpâ:{âserverâ:âtime.google.comâ,âenabledâ:true},âloginâ:{âenabledâ:false,âunprotectedâ:false,âusernameâ:âadminâ},âpin_codeâ:"",ânameâ:"",âfwâ:â20200601-123434/v1.7.0@d7961837â,âfactory_reset_from_switchâ:true,âdiscoverableâ:true,âbuild_infoâ:{âbuild_idâ:â20200601-123434/v1.7.0@d7961837â,âbuild_timestampâ:â2020-06-01T12:34:34Zâ,âbuild_versionâ:â1.0â},âcloudâ:{âenabledâ:false,âconnectedâ:false},âtimezoneâ:âEurope/Amsterdamâ,âlatâ:52.156700,âlngâ:5.384760,âtzautodetectâ:true,âtz_utc_offsetâ:7200,âtz_dstâ:true,âtz_dst_autoâ:true,âtimeâ:â22:31â,âunixtimeâ:1591828280,âhwinfoâ:{âhw_revisionâ:âprod-2020-04-21â, âbatch_idâ:1},âlongpush_duration_msâ:{âminâ:800, âmaxâ:3000},âmultipush_time_between_pushes_msâ:{âmaxâ:500},âinputsâ:[{ânameâ:null,âbtn_typeâ:âtoggleâ,âbtn_reverseâ:0,âbtn_on_urlâ:âhttp://192.168.1.150:80/api/app/cloud.shelly/button_actions/shellyi3/shellyix3-A4CF12F47665/btn_on_1/",âbtn_off_urlâ:âhttp://192.168.1.150:80/api/app/cloud.shelly/button_actions/shellyi3/shellyix3-A4CF12F47665/btn_off_1/â,âshortpush_urlâ:null,âlongpush_urlâ:null,âdouble_shortpush_urlâ:null,âtriple_shortpush_urlâ:null,âshortpush_longpush_urlâ:null,âlongpush_shortpush_urlâ:null},{ânameâ:null,âbtn_typeâ:âmomentaryâ,âbtn_reverseâ:0,âbtn_on_urlâ:âhttp://192.168.1.150:80/api/app/cloud.shelly/button_actions/shellyi3/shellyix3-A4CF12F47665/btn_on_2/â,âbtn_off_urlâ:âhttp://192.168.1.150:80/api/app/cloud.shelly/button_actions/shellyi3/shellyix3-A4CF12F47665/btn_off_2/â,âshortpush_urlâ:âhttp://192.168.1.150:80/api/app/cloud.shelly/button_actions/shellyi3/shellyix3-A4CF12F47665/shortpush_2/â,âlongpush_urlâ:âhttp://192.168.1.150:80/api/app/cloud.shelly/button_actions/shellyi3/shellyix3-A4CF12F47665/longpush_2/â,âdouble_shortpush_urlâ:âhttp://192.168.1.150:80/api/app/cloud.shelly/button_actions/shellyi3/shellyix3-A4CF12F47665/double_shortpush_2/â,âtriple_shortpush_urlâ:âhttp://192.168.1.150:80/api/app/cloud.shelly/button_actions/shellyi3/shellyix3-A4CF12F47665/triple_shortpush_2/â,âshortpush_longpush_urlâ:âhttp://192.168.1.150:80/api/app/cloud.shelly/button_actions/shellyi3/shellyix3-A4CF12F47665/shortpush_longpush_2/â,âlongpush_shortpush_urlâ:âhttp://192.168.1.150:80/api/app/cloud.shelly/button_actions/shellyi3/shellyix3-A4CF12F47665/longpush_shortpush_2/â},{ânameâ:null,âbtn_typeâ:âmomentaryâ,âbtn_reverseâ:0,âbtn_on_urlâ:âhttp://192.168.1.150:80/api/app/cloud.shelly/button_actions/shellyi3/shellyix3-A4CF12F47665/btn_on_3/â,âbtn_off_urlâ:âhttp://192.168.1.150:80/api/app/cloud.shelly/button_actions/shellyi3/shellyix3-A4CF12F47665/btn_off_3/â,âshortpush_urlâ:âhttp://192.168.1.150:80/api/app/cloud.shelly/button_actions/shellyi3/shellyix3-A4CF12F47665/shortpush_3/â,âlongpush_urlâ:âhttp://192.168.1.150:80/api/app/cloud.shelly/button_actions/shellyi3/shellyix3-A4CF12F47665/longpush_3/â,âdouble_shortpush_urlâ:âhttp://192.168.1.150:80/api/app/cloud.shelly/button_actions/shellyi3/shellyix3-A4CF12F47665/double_shortpush_3/â,âtriple_shortpush_urlâ:âhttp://192.168.1.150:80/api/app/cloud.shelly/button_actions/shellyi3/shellyix3-A4CF12F47665/triple_shortpush_3/â,âshortpush_longpush_urlâ:âhttp://192.168.1.150:80/api/app/cloud.shelly/button_actions/shellyi3/shellyix3-A4CF12F47665/shortpush_longpush_3/â,âlongpush_shortpush_urlâ:"http://192.168.1.150:80/api/app/cloud.shelly/button_actions/shellyi3/shellyix3-A4CF12F47665/longpush_shortpush_3/â}]}
Itâs strange Shelly shows this in their app while this data is not available in their API (also not in the output you posted). There should be an on/off variable (with other Shelly devices itâs called ison) in there for me to work with. So for now there is no way for me to show this data in Homey in a reliable way, Shelly would have to updated their API for this.
Iâm interested to know though what kind of contact is connected to input 1 as door sensor?
