I have performed the first tests (alpha1) with a Shelly Plug S.
The discovery did not work:
2019-07-15 20:13:22.068 [WARN ] [discovery.ShellyDiscoveryParticipant] - Discovered Shelly device doesn't have an IP address: [ServiceInfoImpl@10810566 name: 'shellyplug-s-376D1F._http._tcp.local.' address: '(null):0' status: 'DNS: JmDNS-/192.168.2.80 [/192.168.2.80] state: probing 1 task: null', has NO data
shellyplug-s-376D1F._http._tcp.local.: ]
2019-07-15 20:13:22.080 [INFO ] [discovery.ShellyDiscoveryParticipant] - Shelly device discovered: IP-Adress=192.168.2.73, name=shellyplug-s-376d1f
2019-07-15 20:13:22.266 [DEBUG] [helly.internal.handler.ShellyHandler] - Shelly settings info : {"device":{"type":"SHPLG-S","mac":"CC50E3376D1F","hostname":"shellyplug-s-376D1F","num_outputs":1,"num_meters":1},"wifi_ap":{"enabled":false,"ssid":"shellyplug-s-376D1F","key":""},"wifi_sta":{"enabled":true,"ssid":"Ankh-Morpork","ipv4_method":"static","ip":"192.168.2.73","gw":"192.168.2.1","mask":"255.255.255.0","dns":"192.168.2.1"},"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":"","reconnect_timeout_max":60.000000,"reconnect_timeout_min":2.000000,"clean_session":true,"keep_alive":60,"will_topic":"shellies/shellyplug-s-376D1F/online","will_message":"false","max_qos":0,"retain":false,"update_period":30},"sntp": {"server":"time.google.com"},"login":{"enabled":false,"unprotected":false,"username":"xxxx","password":"xxxx"},"pin_code":"xxx","coiot_execute_enable":true,"name":"","fw":"20190711-084501/v1.5.0-hotfix4@3b4f7414","build_info":{"build_id":"20190711-084501/v1.5.0-hotfix4@3b4f7414","build_timestamp":"2019-07-11T08:45:01Z","build_version":"1.0"},"cloud":{"enabled":true,"connected":true},"timezone":"Europe/Berlin","lat":50.110901,"lng":8.682130,"tzautodetect":true,"time":"20:13","hwinfo":{"hw_revision":"prod-190325-test","batch_id":1},"max_power":2500,"led_status_disable":true,"led_power_disable":false,"relays":[{"ison":true,"has_timer":false,"overpower":false,"default_state":"off","auto_on":0.00,"auto_off":0.00,"btn_on_url":null,"out_on_url":null,"out_off_url":null,"schedule":true,"schedule_rules":["1730-0123-on","2350-0123456-off","0800-456-on"]}],"meters":[{"power":3.68,"is_valid":true,"timestamp":1563221602,"counters":[3.690, 3.693, 3.677],"total":11145}]}
2019-07-15 20:13:22.296 [ERROR] [discovery.ShellyDiscoveryParticipant] - Device discovery failed: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1550 path $.relays[0].schedule_rules[0]
2019-07-15 20:13:23.912 [WARN ] [discovery.ShellyDiscoveryParticipant] - Discovered Shelly device doesn't have an IP address: [ServiceInfoImpl@6255384 name: 'shellyplug-s-376E9E._http._tcp.local.' address: '(null):0' status: 'DNS: JmDNS-/192.168.2.80 [/192.168.2.80] state: probing 1 task: null', has NO data
shellyplug-s-376E9E._http._tcp.local.: ]
Adding the device manually worked.
I have create one switch item for power on and off and another number item to display the current watts.
Switching the plug on and off works. The display of the power does not work (shows only “NaN”). This is the trace output:
Shelly status info : {"wifi_sta":{"connected":true,"ssid":"Ankh-Morpork","ip":"192.168.2.72","rssi":-49},"cloud":{"enabled":true,"connected":true},"mqtt":{"connected":false},"time":"20:03","serial":1627,"has_update":false,"mac":"CC50E3376EAF","relays":[{"ison":true,"has_timer":false,"overpower":false}],"meters":[{"power":5.50,"is_valid":true,"timestamp":1563221014,"counters":[5.384, 6.031, 6.089],"total":8076}],"temperature":31.71,"overtemperature":false,"update":{"status":"idle","has_update":false,"new_version":"20190711-084501/v1.5.0-hotfix4@3b4f7414","old_version":"20190711-084501/v1.5.0-hotfix4@3b4f7414"},"ram_total":50832,"ram_free":37512,"fs_size":233681,"fs_free":176202,"uptime":336312}
Will now install alpha2.