• 10 dec 2017: forum version update. In case of issues use this topic.
  • 30 nov 2017: pilight moved servers. In case of issues use this topic.
Hello There, Guest! Login Register


Shelly device
#21
(10-06-2019, 12:19 PM)curlymo Wrote: You're right. It seems that the armhf builds fail someone. The other builds are compiled.



I've updated the repositories again.

Hi curlymo!

Regardless of my issuses with the AND-clause in rules I did some shelly-testing. I configured my Shelly1 and it works like a charm Smile !!

I also have a Shelly-PlugS. I think that protocoll is not yet implemented. It works like a Shelly1PM with power-measurement. I tried to get it to work, by configuring as shelly1pm, but to no avail. I also tried to change the topic in the webinterface form shellies/shellyplug-s-XXXXXX/online to shellies/shelly1pm-XXXXXX/online, but still no luck Tired

Uli
 
Reply
#22
Can you configure the mqtt hardware module and post the output of shelly plug.
 
Reply
#23
(10-19-2019, 06:27 PM)curlymo Wrote: Can you configure the mqtt hardware module and post the output of shelly plug.

Is this what you need? Output of device/status
Code:
{"wifi_sta":{"connected":true,"ssid":"xxx","ip":"192.168.2.42","rssi":-75},"cloud":{"enabled":false,"connected":false},"mqtt":{"connected":false},"time":"22:27","serial":1,"has_update":false,"mac":"B4E62D7AF116","relays":[{"ison":true,"has_timer":false,"overpower":false}],"meters":[{"power":5.40,"is_valid":true,"timestamp":1571524024,"counters":[5.316, 5.326, 5.327],"total":28491}],"temperature":31.82,"overtemperature":false,"tmp":{"tC":31.82,"tF":89.28, "is_valid":"true"},"update":{"status":"idle","has_update":false,"new_version":"20190821-095311/v1.5.2@4148d2b7","old_version":"20190821-095311/v1.5.2@4148d2b7"},"ram_total":50808,"ram_free":38896,"fs_size":233681,"fs_free":176202,"uptime":891311}
Uli
 
Reply
#24
Is this output from pilight-receive when having pilight running the mqtt hardware module?
 
Reply
#25
(10-19-2019, 10:00 PM)curlymo Wrote: Is this output from pilight-receive when having pilight running the mqtt hardware module?

No, I will try this tomorrow 
Uli
 
Reply
#26
(10-19-2019, 10:00 PM)curlymo Wrote: Is this output from pilight-receive when having pilight running the mqtt hardware module?

Hi

I had some trouble starting pilight-receive. I did not find a ssdp-connection. I solved it my manually setting --server to the ip of the raspberry and --port to the random port which can be found in the /var/log/pilight.log.

This is what I get
Code:
{
    "origin": "receiver",
    "message": {
        "topic": "shellies/shellyplug-s-7AF116/relay/0",
        "payload": "off"
    },
    "protocol": "mqtt",
    "uuid": "0000-b8-27-eb-cd7a82"
}
{
    "origin": "receiver",
    "message": {
        "topic": "shellies/shellyplug-s-7AF116/relay/0/power",
        "payload": "0.00"
    },
    "protocol": "mqtt",
    "uuid": "0000-b8-27-eb-cd7a82"
}
{
    "origin": "receiver",
    "message": {
        "topic": "shellies/shellyplug-s-7AF116/relay/0/energy",
        "payload": "4"
    },
    "protocol": "mqtt",
    "uuid": "0000-b8-27-eb-cd7a82"
}
{
    "origin": "receiver",
    "message": {
        "topic": "shellies/shellyplug-s-7AF116/relay/0/power",
        "payload": "0.00"
    },
    "protocol": "mqtt",
    "uuid": "0000-b8-27-eb-cd7a82"
}


{
    "origin": "receiver",
    "message": {
        "topic": "shellies/shellyplug-s-7AF116/relay/0",
        "payload": "on"
    },
    "protocol": "mqtt",
    "uuid": "0000-b8-27-eb-cd7a82"
}


{
    "origin": "receiver",
    "message": {
        "topic": "shellies/shelly1-2C0A09/relay/0",
        "payload": "off"
    },
    "protocol": "mqtt",
    "uuid": "0000-b8-27-eb-cd7a82"
}
{
    "origin": "receiver",
    "message": {
        "state": "off",
        "id": "2C0A09"
    },
    "protocol": "shelly1",
    "uuid": "0000-b8-27-eb-cd7a82"
}
{
    "origin": "receiver",
    "message": {
        "state": "off",
        "id": "2C0A09"
    },
    "protocol": "shelly1",
    "uuid": "0000-b8-27-eb-cd7a82"
}
{
    "origin": "receiver",
    "message": {
        "topic": "shellies/shelly1-2C0A09/input/0",
        "payload": "0"
    },
    "protocol": "mqtt",
    "uuid": "0000-b8-27-eb-cd7a82"
}


{
    "origin": "receiver",
    "message": {
        "topic": "shellies/shellyplug-s-7AF116/relay/0/energy",
        "payload": "4"
    },
    "protocol": "mqtt",
    "uuid": "0000-b8-27-eb-cd7a82"
}
{
    "origin": "receiver",
    "message": {
        "topic": "shellies/shellyplug-s-7AF116/relay/0/power",
        "payload": "5.51"
    },
    "protocol": "mqtt",
    "uuid": "0000-b8-27-eb-cd7a82"
}

Uli
 
Reply
#27
I've tried adding Shelly Plug. Still untested because i don't own one.
 
Reply
#28
(10-21-2019, 07:56 PM)curlymo Wrote: I've tried adding Shelly Plug. Still untested because i don't own one.

Hi

I saw you added shellyplug, many THX. But this is the big 16A-switch, which I don't own either. My device from the log is the small 10A-switch shellyplug-s. I will test after you have pushed shellyplug-s too 

Uli
 
Reply
#29
I believe there is no implementation difference between the two, so please test with the plug you already have.
 
Reply
#30
(10-22-2019, 07:13 AM)curlymo Wrote: I believe there is no implementation difference between the two, so please test with the plug you already have.

Hi curlymo

I just did the test. It only works partly. If I externaly switch the shellyplug-s the gui correctly shows the state. But switching with the gui does not work. I assume the error lies in the use of explode() in shelly.lua:105.

This work fine for the other shelly's, but the "shellyplug-s" has a "-" in its own name. So one should search for "-" from the back of the string.

Uli
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  re-recognition of device sending signals n0l0cale 1 584 02-21-2019, 12:30 PM
Last Post: TerryLewis

Forum Jump:


Browsing: 1 Guest(s)