alexryd / homebridge-shelly

Homebridge plugin for Shelly devices
MIT License
301 stars 45 forks source link

Shelly i3 #126

Open Benje712 opened 4 years ago

Benje712 commented 4 years ago

Thanks for creating the tool and making it possible to use the Shelly devices in homebridge.

I just wanted to post the output for the new Shelly i3 device. Shouldn’t be that hard to implement I hope.

Type: SHIX3-1 CoAP description: {"blk":[{"I":0,"D":"Device"}],"sen":[{"I":118,"T":"S","D":"Input","R":"0/1","L":0},{"I":128,"T":"S","D":"Input","R":"0/1","L":0},{"I":138,"T":"S","D":"Input","R":"0/1","L":0},{"I":119,"T":"S","D":"Input event","R":"S/L/SS/SSS/SL/LS","L":0},{"I":129,"T":"S","D":"Input event","R":"S/L/SS/SSS/SL/LS","L":0},{"I":139,"T":"S","D":"Input event","R":"S/L/SS/SSS/SL/LS","L":0},{"I":120,"T":"S","D":"Input event counter","R":"U16","L":0},{"I":130,"T":"S","D":"Input event counter","R":"U16","L":0},{"I":140,"T":"S","D":"Input event counter","R":"U16","L":0}]} CoAP status: {"G":[[0,118,0],[0,128,0],[0,138,0],[0,119,""],[0,129,""],[0,139,""],[0,120,0],[0,130,0],[0,140,0]]} HTTP Settings:: {"device":{"type":"SHIX3-1","mac":"434343434343","hostname":"shellyix3-54545454","num_inputs":3,"num_outputs":0},"wifi_ap":{"enabled":false,"ssid":"shellyix3-656565","key":""},"wifi_sta":{"enabled":true,"ssid":"generic","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-A4CF12F47621","reconnect_timeout_max":60,"reconnect_timeout_min":2,"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/Berlin","lat":53.551102,"lng":9.99368,"tzautodetect":true,"tz_utc_offset":7200,"tz_dst":true,"tz_dst_auto":true,"time":"13:36","unixtime":1591882585,"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.167/relay/0?turn=on","btn_off_url":"http://192.168.1.167/relay/0?turn=off","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":null,"btn_off_url":null,"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":null,"btn_off_url":null,"shortpush_url":null,"longpush_url":null,"double_shortpush_url":null,"triple_shortpush_url":null,"shortpush_longpush_url":null,"longpush_shortpush_url":null}]} HTTP Status:: {"wifi_sta":{"connected":true,"ssid":"65656565","ip":"192.168.1.140","rssi":-59},"cloud":{"enabled":false,"connected":false},"mqtt":{"connected":false},"time":"13:36","unixtime":1591882585,"serial":1,"has_update":false,"mac":"75757575","inputs":[{"input":0,"event":"","event_cnt":0},{"input":0,"event":"","event_cnt":0},{"input":0,"event":"","event_cnt":0}],"update":{"status":"idle","has_update":false,"new_version":"20200601-123434/v1.7.0@d7961837","old_version":"20200601-123434/v1.7.0@d7961837"},"ram_total":50296,"ram_free":40120,"ram_lwm":34120,"fs_size":233681,"fs_free":155369,"uptime":759}

Thanks in advance

themfinger commented 4 years ago

+1

Cunner commented 4 years ago

+1

alexryd commented 4 years ago

The latest beta version of this plugin now has support for the Shelly i3. You can try it out by installing homebridge-shelly@beta.

Benje712 commented 4 years ago

Thanks for your effort! Behavior works perfectly fine as expected. Is their a chance of also implementing a Toogle switch Typ? As of now it’s only possible to use the Shelly I3 with it set to momentary. Can only speak for myself but would love to use it to also replace toggle switches without using the multi click functions. Mapping it to an on/off switch would maybe work.

It would probably need to be defined in the config file which type of switch one wants to use. Greetings Benjamin

themfinger commented 4 years ago

Can we use the single/double, long press with HomeKit?

On Wed, 1 Jul 2020 at 10:11, Benje712 notifications@github.com wrote:

Thanks for your effort! Behavior works perfectly fine as expected. Is their a chance of also implementing a Toogle switch Typ? As of now it’s only possible to use the Shelly I3 with it set to momentary. Can only speak for myself but would love to use it to also replace toggle switches without using the multi click functions. Mapping it to an on/off switch would maybe work.

It would properly need to be defined in the config file which type one wants to use. Greetings Benjamin

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/alexryd/homebridge-shelly/issues/126#issuecomment-652297035, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD6K2VLUQLR354WCCLWI2BLRZL4UJANCNFSM4N3KTFOA .

--

Nuno Liça

Benje712 commented 4 years ago

Can we use the single/double, long press with HomeKit?

On Wed, 1 Jul 2020 at 10:11, Benje712 notifications@github.com wrote:

Thanks for your effort! Behavior works perfectly fine as expected. Is their a chance of also implementing a Toogle switch Typ? As of now it’s only possible to use the Shelly I3 with it set to momentary. Can only speak for myself but would love to use it to also replace toggle switches without using the multi click functions. Mapping it to an on/off switch would maybe work.

It would properly need to be defined in the config file which type one wants to use. Greetings Benjamin

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/alexryd/homebridge-shelly/issues/126#issuecomment-652297035, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD6K2VLUQLR354WCCLWI2BLRZL4UJANCNFSM4N3KTFOA .

--

Nuno Liça

Single double and long press work fine in HomeKit image

Sleepwalker771 commented 4 years ago

Thanks for this great plugin.

I have installed v0.14.0-beta1 to get my new Shelly i3 working. It appears in Homekit as expected. But when i click on Input 2 (short, doublepress, longpress) the configured actions of Input 1 where triggered!?

Does anyone else have this Issue???

Thanks in advance for answers...

alexryd commented 4 years ago

@Benje712 I'm planning on adding support for toggle switches for the i3 as well.

@Sleepwalker771 Are you still having this issue?

Sleepwalker771 commented 4 years ago

@Benje712 I'm planning on adding support for toggle switches for the i3 as well.

@Sleepwalker771 Are you still having this issue?

@alexryd Still the same issue with V0.14.0 on my two I3 (Shellys on V1.7.0)

alexryd commented 4 years ago

Ok, I'll see if I can reproduce this as soon as I find the time.

bikeeee commented 4 years ago

Hey Alex

Thanks for the great job!

Button 1 is Working really fine with all 3 functions.

The problem, that also button 2/3 also activate the function of button 1 is there not any longer.

But with V0.15.3 there is no reaction by pressing button 2/3.

alexryd commented 4 years ago

This bug has now been fixed in version 0.15.4.

Paddy03161 commented 4 years ago

Hi Alex!

Would love to see this feature too. I‘m trying to use the i3 with a button in HomeKit. First click should turn the light on, click again and the light should go off. But I can’t get it to work. Do you have any ideas how to realize something like that or isn’t it possible right now ?

Thank you !

edlucky1 commented 3 years ago

@Benje712 I'm planning on adding support for toggle switches for the i3 as well.

Has toggle switch support been implemented for the i3? I can't seem to get anything but a button and no comments in the config options for this.

I'd be willing to help test if needed. Thanks!

makramsg commented 3 years ago

hi, thank you for the great work. I am controlling a large number of shelly DUO spotlights using i3, and the toggle function would be amazing.

Nisse57 commented 3 years ago

Plus one for the toggle switch enhancement. I use several i3's as to monitor different alarms and they all work as toggle switches, i.e. like a relay that close on activation.

mc-k commented 3 years ago

I have similar use cases for some of my i3s and would love to see toggle support.

Nisse57 commented 1 year ago

Any chance of seeing toggle switch support in the future?

gjanos89 commented 9 months ago

Hi, I have them with toggle switches, could this be the reason that I see the the 3 buttons, all data in Homebrigde but nothing happens when switching AND also I do not see anything in the Homekit app transferred after adding?