Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Unsolved
Collapse
Discussion Forum to share and further the development of home control and automation, independent of platforms.
  1. Home
  2. openLuup
  3. Plugins
  4. openLuup: Shelly Bridge plugin
openweather plugin ?
DesTD
Hey guys.... long time Since Dark weather is no more active, thanks Apple. Anyone switch to openweather to get weather data ?
Plugins
Openluup: Datayours
D
Hi akbooer, I've an installation with a centralized openluup/DY on Debian 11 where're archived and consolidated several remote openluup/DY on RPI. I'm also using a user-defined (defined with your support) "DataUser.lua" to process metrics and creating different metric names. I've a schema of this configuration but I can't upload on forum. I'd like to manage outage network connections between remote and centralized system while the remote DY is running and archives data locally. I see the whisper-fill.py python routine (https://github.com/graphite-project/whisper/blob/master/bin/whisper-fill.py) from Graphite tool. I know that DY/whisper format is different from Graphite/whisper (CSV vs. binary packing), but based on your deep knowledge and experience is it hard to adapt the fill routine to DY/whisper format ? tnks donato
Plugins
openLuup: Shelly Bridge plugin
akbooerA
Feedback / solutions with openLuup's built-in Shelly bridge.
Plugins
zigbee2mqtt and openLuup
A
Been using zigbee2mqtt and openLuup for sometime now and it is working well. I attempted to add another Hue switch to-day. It's a newer version of the other ones I have been using so far. They are pretty much identical. The older ones installed no problem (which is weird), but the new one won't. Looking at the code, it looks this function in L_Zigbee2MQTTBridge.lua: configure_scene_controller(dno) is not being passed the parameter "dno" when the function is called. The device is created but is incomplete. Just out of interest how do you pretty print to the log from within say L_Zigbee2MQTTBridge.lua? I tried a few incarnations such a: local pretty = openLuup.loader.shared_environment.pretty but they all failed.
Plugins
UPnP event proxy plugin using systemd service file
A
Originally I was using Futzle's UPnP event proxy plugin on Vera with the Sonos plugin. Worked very well. On making the move to openLuup, one finds that the proxy can't be used because the proxy daemon start and stop, etc uses a script installed by the plugin that only works on openWRT, as used by Vera. The Sonos plugin still works without the proxy but it reverts to polling. It becomes a bit on the sluggish side and sometimes doesn't function quite as intended. I've modified the proxy plugin to install a script that runs as a systemd service. systemd can be found on a lot of contemporary Linux installs, including Raspberry Pis. To make use of; just install the plugin from the AltUI app store and restart the Luup engine a couple of times. The dashboard should indicate "Status: Proxy running". Note that the service file expects "L_UPnPProxyDaemon.lua" to be located at the typical plugin files location: /etc/cmh-ludl/ After the plugin is installed, the service file should be found in: /etc/systemd/system/ as UPnPProxy.service. If you use the Sonos plugin, you need to change the variable "UseProxy" to "1" and restart the LuupEngine. In the Sonos parent device, you should see: "Running x zones; proxy detected". Updated doco here. Hope it works - YMMV.
Plugins
Sonos system alerts truncated
A
Well pretty sure I didn't change or touch anything! I've turned everything on and off again as one might hope. Excepting a total reboot of the Pi3 that's running all my stuff very reliably in openLuup. It's all been working well for years and now all of sudden 6 second alerts are truncated to about 4 seconds. Occasionally it works as it should. I see this in the log - does it help? 2023-02-20 09:39:06.662 luup_log:0: My Lua ver 0.50 debug: executing scene 63: "Check windows doors" in room: "Watchers" 2023-02-20 09:39:06.663 luup.call_action:: 217.urn:micasaverde-com:serviceId:Sonos1.Alert 2023-02-20 09:39:06.663 luup.call_action:: action will be handled by parent: 214 2023-02-20 09:39:06.663 luup_log:0: My Lua ver 0.50 debug: rest of scene 63 was executed 2023-02-20 09:39:06.663 luup.scenes:: scene 63, Check windows doors, initiated by AltUI 2023-02-20 09:39:06.665 luup_log:214: Sonos: Alert action on device 217 URI "http://redacted:3480/www/sounds/AllClosed.mp3" duration "6" 2023-02-20 09:39:06.758 luup_log:214: Sonos: UPnP_request (Pause, urn:schemas-upnp-org:service:AVTransport:1): status=1 statusMsg=500 result=[<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><s:Fault><faultcode>s:Client</faultcode><faultstring>UPnPError</faultstring><detail><UPnPError xmlns="urn:schemas-upnp-org:control-1-0"><errorCode>701</errorCode></UPnPError></detail></s:Fault></s:Body></s:Envelope>] 2023-02-20 09:39:06.759 luup_log:214: stack traceback: ./L_SonosSystem1.lua:265: in function 'error' ./L_SonosUPnP.lua:289: in function <./L_SonosUPnP.lua:169> (tail call): ? ./L_SonosSystem1.lua:3390: in function 'sayOrAlert' ./L_SonosSystem1.lua:3452: in function 'queueAlert' ./L_SonosSystem1.lua:3843: in function <./L_SonosSystem1.lua:3839> (tail call): ? [C]: in function 'pcall' ./openLuup/scheduler.lua:204: in function 'context_switch' ./openLuup/scheduler.lua:366: in function 'dispatch' ./openLuup/scheduler.lua:588: in function 'task_callbacks' ./openLuup/scheduler.lua:699: in function 'start' openLuup/init.lua:354: in main chunk [C]: ? 2023-02-20 09:39:06.888 luup.variable_set:: 214.urn:toggledbits-com:serviceId:SonosSystem1.zoneInfo was: {"zones":{"RINCON_000E58DC7BBE01400":{"Location":"http://redacted3:1400/xml/device_description.xml","Group":"RIN... now: {"zones":{"RINCON_000E58DC7BBE01400":{"Location":"http://redacted3:1400/xml/device_description.xml","Group":"RIN... #hooks:0 2023-02-20 09:39:06.895 luup.variable_set:: 217.urn:upnp-org:serviceId:AVTransport.TransportState was: STOPPED now: TRANSITIONING #hooks:0 2023-02-20 09:39:06.901 luup.variable_set:: 217.urn:upnp-org:serviceId:AVTransport.CurrentPlayMode was: SHUFFLE_NOREPEAT now: NORMAL #hooks:0 2023-02-20 09:39:06.913 luup.variable_set:: 217.urn:upnp-org:serviceId:AVTransport.CurrentTransportActions was: Set, Stop, Pause, Play, X_DLNA_SeekTime, Next, X_DLNA_SeekTrackNr now: Set, Stop, Pause, Play, X_DLNA_SeekTime, X_DLNA_SeekTrackNr #hooks:0 2023-02-20 09:39:06.921 luup.variable_set:: 217.urn:upnp-org:serviceId:AVTransport.NumberOfTracks was: 10 now: 1 #hooks:0 2023-02-20 09:39:06.922 luup.variable_set:: 217.urn:upnp-org:serviceId:AVTransport.AVTransportURI was: x-rincon-queue:RINCON_000E58DC7BBE01400#0 now: http://redacted:3480/www/sounds/AllClosed.mp3 #hooks:0 2023-02-20 09:39:11.929 luup_log:214: Sonos: UPnP_request() "urn:schemas-upnp-org:service:AVTransport:1"#"GetPositionInfo" action took 5.0073010921478s (long) 2023-02-20 09:39:11.932 luup.variable_set:: 217.urn:upnp-org:serviceId:AVTransport.CurrentTrackDuration was: 0:02:22 now: 0:00:00 #hooks:0 2023-02-20 09:39:11.933 luup.variable_set:: 217.urn:upnp-org:serviceId:AVTransport.CurrentTrackURI was: x-file-cifs://ELEPHANT1/Multimedia/My%20Music/Music%20JP/The%20Smiths/The%20Queen%20Is%20Dead/08%20Vicar%20in%20a%2... now: http://redacted:3480/www/sounds/AllClosed.mp3 #hooks:0 2023-02-20 09:39:11.934 luup.variable_set:: 217.urn:upnp-org:serviceId:AVTransport.CurrentTrackMetaData was: <DIDL-Lite xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns:r... now: <DIDL-Lite xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns:r... #hooks:0 2023-02-20 09:39:11.936 luup.variable_set:: 217.urn:upnp-org:serviceId:AVTransport.CurrentStatus was: Vicar in a Tutu: (The Smiths, The Queen Is Dead) now: AllClosed.mp3 #hooks:0 2023-02-20 09:39:11.937 luup.variable_set:: 217.urn:upnp-org:serviceId:AVTransport.CurrentTitle was: Vicar in a Tutu now: AllClosed.mp3 #hooks:0 2023-02-20 09:39:11.937 luup.variable_set:: 217.urn:upnp-org:serviceId:AVTransport.CurrentArtist was: The Smiths now: #hooks:0 2023-02-20 09:39:11.938 luup.variable_set:: 217.urn:upnp-org:serviceId:AVTransport.CurrentAlbum was: The Queen Is Dead now: #hooks:0 Also see these: 2023-02-24 16:12:13.576 openLuup.server:: GET /www/sounds/YouRang.mp3 HTTP/1.1 tcp{client}: 0x17e96f0 2023-02-24 16:12:13.579 openLuup.server:: error 'closed' sending 43102 bytes to tcp{client}: 0x17e96f0 So any clues?
Plugins
Generic support for vacuums
therealdbT
I've got myself a nice Ecovacs Deebot 950, because one of the Roombas is getting really old (12 years and still going strong). It's my first one connected to WiFi, since the others are legacy. I've found a nice mqtt library and it's already pushing to my broker in real time, but I'm wondering if there's a generic device template and/or service, otherwise I'll start building one and I'll try to keep it as much generic as possible.
Plugins
Switchboard plugin
D
Topic thumbnail image
Plugins
Cannot publish new version in ALTAPP Store
M
Hi @akbooer, I have an updated version of one of my plugins but I cannot publish it in the ALTApp Store. When I click publish it gets in a sort of loop of Refreshing Token.../Token refreshed. However, I never get to page to refresh the token. Looking at the browser debug window I see this as the response to http://192.168.178.101:3480/data_request?id=lr_ALTUI_Handler&command=refresh_auth_token {"error":{"code":400,"message":"Bad Request - invalid_grant","step":"Get access token from refresh token"}} Running openLuup v21.7.25. Any suggestion? Cheers Rene
Plugins
openLuup: UI Device / Tile Text
parkercP
Topic thumbnail image
Plugins
Reactor scope issues
B
Topic thumbnail image
Plugins
Virtual Devices Plug-in update (with async HTTP support)
therealdbT
I just published an update to my Virtual Devices Plug-in. What's new in version 1.5: support for async HTTP (out of the box on openluup, just download https://github.com/akbooer/openLuup/blob/master/openLuup/http_async.lua and copy with the plug-in files on Vera) experimental support for setpoints management in Virtual Heaters (you know, the device will turn itself off if temperature is reached, and automatically on when temperature is not beyond the setpoint) external device for temperature in Virtual Heaters (just set urn:bochicchio-com:serviceId:VirtualHeater1/TemperatureDevice variable) small fixes, stabilization Grab your copy from https://github.com/dbochicchio/vera/tree/master/VirtualDevices As always, 100% local, 100% apps friendly, 100% supported by Alexa (and Google Home, I guess).
Plugins
AltUI will not update under openLuup (Vera: not sure what it does)
A
This topic has come up before but I haven't seen an answer. Symptom: AltuUI says there is a new update available, so you tell it to do the update but the update does not happen. AltUI remains stuck on it's old version. On other occasions it works OK. So my version is: AltUI v2.49.2546, © 2019 AltUI says this: a newer version #2551 of ALTUI is available, do you want to upgrade ? add scrollable dialog for long boxes bugfix: clock display on safari remote url update ( @olov ) update jquery and bootstrap versions credential to camera device url ( @rafale77 ) ignore Ezlo hub ( @reneboer) Track through the JavaScript and find that this issues the update command: function _triggerAltUIUpgrade(newversion,newtracnum) { var url = '?id=action&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&action=CreatePlugin&PluginNum=8246&Version={1}&TracRev={0}'.format(newversion,newtracnum); return _httpGet(url,{}).always( function() { PageMessage.message(_T("Upgrade Request succeeded, a Luup reload will happen"),"success"); }); }; And the url variable equals: url: "?id=action&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&action=CreatePlugin&PluginNum=8246&Version=40628&TracRev=2551" All looks good so far. I manually issue the same url complete with my openLuup ip_address in a local browser. Update fails - looks like AltUI is doing as it should: http://ip_address:3480/data_request?id=action&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&action=CreatePlugin&PluginNum=8246&Version=40628&TracRev=2551 In openLuup I see: 2021-12-06 13:56:14.821 luup_log:3: ALTUI: startupDeferred, called on behalf of device:3 2021-12-06 13:56:14.838 luup.variable_set:: 3.urn:upnp-org:serviceId:altui1.Version was: v2.49 now: v2.49 #hooks:0 And then later: 2021-12-06 13:55:58.256 openLuup.server:: GET /data_request?id=action&serviceId=urn:micasaverde-com:serviceId:HomeAutomationGateway1&action=CreatePlugin&PluginNum=8246&Version=40628&TracRev=2551 HTTP/1.1 tcp{client}: 0x25712a8 2021-12-06 13:55:58.257 luup.call_action:: 0.urn:micasaverde-com:serviceId:HomeAutomationGateway1.CreatePlugin 2021-12-06 13:55:58.259 luup.call_action:: 4.urn:upnp-org:serviceId:AltAppStore1.update_plugin 2021-12-06 13:55:58.260 luup_log:4: AltAppStore : starting <run> phase... 2021-12-06 13:55:58.262 luup_log:4: AltAppStore : downloading amg0/ALTUI [2551] to trash/AltAppStore/ 2021-12-06 13:55:58.262 luup_log:4: AltAppStore : GitHub request: https://api.github.com/repos/amg0/ALTUI/contents?ref=2551 2021-12-06 13:55:58.760 luup_log:4: AltAppStore : GitHub request: https://api.github.com/repos/amg0/ALTUI/contents/blockly?ref=2551 2021-12-06 13:55:59.543 luup_log:4: AltAppStore : getting contents of version: 2551 2021-12-06 13:55:59.544 luup.variable_set:: 4.urn:upnp-org:serviceId:altui1.DisplayLine1 was: AltAppStore now: Downloading... #hooks:0 2021-12-06 13:55:59.544 luup.variable_set:: 4.urn:upnp-org:serviceId:altui1.DisplayLine2 was: now: Alternate UI #hooks:0 2021-12-06 13:55:59.544 luup_log:4: AltAppStore : scheduling <job> phase... 2021-12-06 13:55:59.544 openLuup.requests:: 2021-12-06 13:55:59.545 openLuup.server:: request completed (148 bytes, 1 chunks, 1288 ms) tcp{client}: 0x25712a8 2021-12-06 13:55:59.554 openLuup.server:: request completed (6233 bytes, 1 chunks, 16442 ms) tcp{client}: 0x255e680 2021-12-06 13:55:59.555 luup_log:4: AltAppStore : ...final <job> phase 2021-12-06 13:55:59.555 luup_log:4: AltAppStore : Total size 0.000 (kB) 2021-12-06 13:55:59.555 luup.variable_set:: 4.urn:upnp-org:serviceId:altui1.DisplayLine2 was: Alternate UI now: Alternate UI 100% #hooks:0 2021-12-06 13:55:59.555 luup_log:4: AltAppStore : updating icons in icons/ ... 2021-12-06 13:55:59.555 luup_log:4: AltAppStore : updating device files in ./ ... 2021-12-06 13:55:59.556 luup_log:4: AltAppStore : ... 0 icon files 2021-12-06 13:55:59.556 luup_log:4: AltAppStore : ... 0 device files 2021-12-06 13:55:59.556 luup_log:4: AltAppStore : Alternate UI update completed 2021-12-06 13:55:59.556 openLuup.luup:: device 4 'Alternate App Store' requesting reload 2021-12-06 13:55:59.556 luup.reload:: saving user_data 2021-12-06 13:56:00.262 openLuup.luup:: exiting with code 42 - after 0.3 hours All looks OK. Then I check GitHub. It shows the latest changes to the version 2551. However this page says the latest version is 2550. So I wondering what's going on. Seems the latest version number is not being picked by the installer? (not sure how it works.) Is it possible for openLuup to log a bit more about the version it's trying to install. As this call returns. https://api.github.com/repos/amg0/ALTUI/contents?ref=2551 message "No commit found for the ref 2551" documentation_url "https://docs.github.com/v3/repos/contents/" But this works fine: https://api.github.com/repos/amg0/ALTUI/contents?ref=2550 So it looks like AMG0 doesn't always update the repository with whatever is needed to get this to work (I imagine that's easy to forget). But could openLuup send back a fail result to AltUI and AltUI pick that up? Currently it looks like AltUI always assumes everything went OK. Or somehow; could openLuup log and/or notify the user what went wrong?
Plugins
Reactor: double click action
R
Hi @toggledbits and others, Could you help me out with the following use case? I have a z-wave module that doesn't have scene functionality, but I want to trigger a double click action on the switch. What is the easiest way to do this in reactor? I'm struggling with this and I think I'm thinking too complex at this point.
Plugins
Virtual Pronto Remote plugin
A
Topic thumbnail image
Plugins
openLuup: SmartSwitch plugin
akbooerA
This plugin was updated by @vosmont to run under openLuup (and possibly UI7.) @DesT recently asked for a slight addition to its functionality, so I'm adding this thread to discuss the changes.
Plugins
Reactor icons for local lan
B
@toggledbits Hi Patrick. I had my internet go down for about 12 hours the other day, and that experience encouraged me to work on getting my HA off the cloud to the extent that I can. I have not converted my Veras to local devices yet, though after the next VeraPlus stable firmware release, I will probably run your scripts to localize the device as I don't see Ezlo surviving to maintain Vera firmware. My question concerns the icons in your plugins. While attempting to mod a reactor sensor during the outage, I could not really do anything (without a sense of risk anyway) as the icons used are pulled from your website. Many Vera plugins operate this way--no doubt to save space on the vera, and my inclination was to manually start downloading what I needed when the outage was over. I run everything on openLuup and space is not an issue. It occurred to me that localizing a plugin could be a button push somewhere in the plugin UI where one could auto download any needed icons and the plugin would recognize the local copy first, before trying the cloud. Could this be a possible enhancement to your plugins? I don't really have a technical grasp of whether this would be workable or not.
Plugins
openLuup: Tasmota MQTT Bridge
akbooerA
Feedback / solutions for openLuup's built-in Tasmota MQTT bridge.
Plugins
AltUi
C
I reinstalled the AltUi plugin on OpenLuup and I no longer access its web interface I have the following error: error in callback [lr_ALTUI_Handler]: ./dkjson.lua:397: bad argument # 1 to 'strfind' (string expected, got nil) Can someone help me? OpenLuup version 2021.05.08
Plugins
AltUI sort?
CatmanV2C
Am I losing it or did there used to be a sort either alphabetically or numerically option on devices in AltUI? Seems to not be there there? TIA C
Plugins

openLuup: Shelly Bridge plugin

Scheduled Pinned Locked Moved Plugins
144 Posts 7 Posters 33.8k Views 6 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • akbooerA Offline
    akbooerA Offline
    akbooer
    wrote on last edited by akbooer
    #84

    Thanks for the error report. Not surprising, since, as you say, there is only limited support for the new Shellys. I've just added them on an as-needed basis, and I don't have that device (looks interesting, though!)

    @a-lurker said in openLuup: Shelly Bridge plugin:

    I looked around mqtt.lua but the only thing that I thought may be incorrect is line 201:

    for i = 0, 2 do -- maximum of 3 bytes encode remaining length, LSB first

    No, this is not an error. The initial fixed-header byte is picked up in line 196:

    local fixed_header_byte1, err = client: receive (1)
    

    I'll look into this further and get back to you.

    AK

    1 Reply Last reply
    0
    • A Offline
      A Offline
      a-lurker
      wrote on last edited by
      #85

      You have fixed_header_byte1, which is essential and nothing would work with out it but the subsequent message length encoding is a four byte concertina arrangement, not a three byte one.

      1 Reply Last reply
      0
      • akbooerA Offline
        akbooerA Offline
        akbooer
        wrote on last edited by
        #86

        Ah! My mistake. I will fix that. Thanks.

        As you say, though, that’s not the issue here.

        1 Reply Last reply
        0
        • akbooerA Offline
          akbooerA Offline
          akbooer
          wrote on last edited by
          #87

          The error seems odd, since the receive function is only called from the incoming handler when there is data to read...

          I'm perplexed.

          1 Reply Last reply
          0
          • A Offline
            A Offline
            a-lurker
            wrote on last edited by
            #88

            I added a one line of logging after line 296 & 297 like so:

              function MQTT_packet.PUBLISH (TopicName, ApplicationMessage, control_flags) 
                -- publish to MQTT client socket (with QoS = 0)
                _log ('Topic: '..TopicName..' ApplicationMessage: '..ApplicationMessage)
            
            

            and here is the log edited to show the action:

            CONNECT	 	tcp{client}: 0x55a8931288
            ClientId: 	shellyplusht-80646fc9b46d
            WillTopic: 	shellyplusht-80646fc9b46d/online
            WillMessage: 	false
            UserName: 	****
            Password: 	****
            CONNACK	ack
            
            SUBSCRIBE	 	tcp{client}: 0x55a8931288
            Packet Id: 0x0001
            Topic: 	shellyplusht-80646fc9b46d/rpc
            SUBACK	ack
            shellyplusht-80646fc9b46d SUBSCRIBE to shellyplusht-80646fc9b46d/rpc tcp{client}: 0x55a8931288
            
            SUBSCRIBE	 	tcp{client}: 0x55a8931288
            Packet Id: 0x0002
            Topic: 	shellyplusht-80646fc9b46d/command/sys
            SUBACK	ack
            shellyplusht-80646fc9b46d SUBSCRIBE to shellyplusht-80646fc9b46d/command/sys tcp{client}: 0x55a8931288
            
            SUBSCRIBE	 	tcp{client}: 0x55a8931288
            Packet Id: 0x0003
            Topic: 	shellyplusht-80646fc9b46d/command
            SUBACK	ack
            shellyplusht-80646fc9b46d SUBSCRIBE to shellyplusht-80646fc9b46d/command tcp{client}: 0x55a8931288
            
            SUBSCRIBE	 	tcp{client}: 0x55a8931288
            Packet Id: 0x0004
            Topic: 	shellies/command
            SUBACK	ack
            shellyplusht-80646fc9b46d SUBSCRIBE to shellies/command tcp{client}: 0x559c9277e8
            
            PUBLISH	 	tcp{client}: 0x559c9277e8
            PUBACK	ack
            Topic: shellyplusht-80646fc9b46d/online ApplicationMessage: true
            Topic: shellyplusht-80646fc9b46d/online ApplicationMessage: true
            
            PUBLISH	 	tcp{client}: 0x559c9277e8
            PUBACK	ack
            Topic: shellyplusht-80646fc9b46d/events/rpc ApplicationMessage: {"src":"shellyplusht-80646fc9b46d","dst":"shellyplusht-80646fc9b46d/events","method":"NotifyFullStatus","params":{"ts":1.45,"ble":{},"cloud":{"connected":false},"devicepower:0":{"id": 0,"battery":{"V":0.43, "percent":0},"external":{"present":true}},"ht_ui":{},"humidity:0":{"id": 0,"rh":54.7},"mqtt":{"connected":true},"sys":{"mac":"80646fc9b46d","restart_required":false,"time":null,"unixtime":null,"uptime":1,"ram_size":246864,"ram_free":167876,"fs_size":458752,"fs_free":176128,"cfg_rev":11,"kvs_rev":0,"webhook_rev":0,"available_updates":{},"wakeup_reason":{"boot":"deepsleep_wake","cause":"status_update"},"wakeup_period":600},"temperature:0":{"id": 0,"tC":23.2, "tF":73.7},"wifi":{"sta_ip":"<ip_address>","status":"got ip","ssid":"<ssid>","rssi":-66},"ws":{"connected":false}}}
            Topic: shellyplusht-80646fc9b46d/events/rpc ApplicationMessage: {"src":"shellyplusht-80646fc9b46d","dst":"shellyplusht-80646fc9b46d/events","method":"NotifyFullStatus","params":{"ts":1.45,"ble":{},"cloud":{"connected":false},"devicepower:0":{"id": 0,"battery":{"V":0.43, "percent":0},"external":{"present":true}},"ht_ui":{},"humidity:0":{"id": 0,"rh":54.7},"mqtt":{"connected":true},"sys":{"mac":"80646fc9b46d","restart_required":false,"time":null,"unixtime":null,"uptime":1,"ram_size":246864,"ram_free":167876,"fs_size":458752,"fs_free":176128,"cfg_rev":11,"kvs_rev":0,"webhook_rev":0,"available_updates":{},"wakeup_reason":{"boot":"deepsleep_wake","cause":"status_update"},"wakeup_period":600},"temperature:0":{"id": 0,"tC":23.2, "tF":73.7},"wifi":{"sta_ip":"<ip_address>","status":"got ip","ssid":"<ssid>","rssi":-66},"ws":{"connected":false}}}
            
            PUBLISH	 	tcp{client}: 0x559c9277e8
            PUBACK	ack
            Topic: shellyplusht-80646fc9b46d/events/rpc ApplicationMessage: {"src":"shellyplusht-80646fc9b46d","dst":"shellyplusht-80646fc9b46d/events","method":"NotifyStatus","params":{"ts":1.45,"mqtt":{"connected":true}}}
            Topic: shellyplusht-80646fc9b46d/events/rpc ApplicationMessage: {"src":"shellyplusht-80646fc9b46d","dst":"shellyplusht-80646fc9b46d/events","method":"NotifyStatus","params":{"ts":1.45,"mqtt":{"connected":true}}}
            
            PUBLISH	 	tcp{client}: 0x559c9277e8
            PUBACK	ack
            Topic: shellyplusht-80646fc9b46d/events/rpc ApplicationMessage: {"src":"shellyplusht-80646fc9b46d","dst":"shellyplusht-80646fc9b46d/events","method":"NotifyEvent","params":{"ts":1703301404.25,"events":[{"component":"sys", "event":"sleep", "ts":1703301404.25}]}}
            Topic: shellyplusht-80646fc9b46d/events/rpc ApplicationMessage: {"src":"shellyplusht-80646fc9b46d","dst":"shellyplusht-80646fc9b46d/events","method":"NotifyEvent","params":{"ts":1703301404.25,"events":[{"component":"sys", "event":"sleep", "ts":1703301404.25}]}}
            
            MQTT:1883 connection closed  tcp{client}: 0x559c9277e8
            openLuup.mqtt:: RECEIVE ERROR: (Fixed Header byte) closed tcp{client}: 0x559c9277e8
            
            

            Every 5 minutes the Shelly come on line, sends some status and finally sends the sleep mode event then goes into sleep mode. This would close the connection to the openLuup server. So I'm wondering if openLuup is checking for a "PUBACK" at this time and that's an issue? Might also be a QoS level mix up as well; eg "PUBACK" is not needed. Or the Shelly is going to sleep too early.

            I'm still trying to understand how this all works and in what direction information is being sent eg is "PUBACK" been sent or received by openLuup. A few <-- arrows might be good --> eg incoming and outgoing.

            And why does my log code line, log the same information twice in a row. I see it does this also for my Zigbee MQTT devices, which work fine. If openLupp is publishing one of its own internal variables the log only shows it once.

            1 Reply Last reply
            0
            • akbooerA Offline
              akbooerA Offline
              akbooer
              wrote on last edited by
              #89

              Good diagnostics! I will dig in (although it IS the holidays, so time for this is somewhat limited...)

              1 Reply Last reply
              0
              • A Offline
                A Offline
                a-lurker
                wrote on last edited by
                #90

                What - you aren't around on Xmas day?

                1 Reply Last reply
                0
                • akbooerA Offline
                  akbooerA Offline
                  akbooer
                  wrote on last edited by
                  #91

                  I obviously need to get one of these myself… but the UK store is currently out of stock.

                  1 Reply Last reply
                  0
                  • A Offline
                    A Offline
                    a-lurker
                    wrote on last edited by
                    #92

                    Yes - they are a nice unit. The large display is easy to read. This guy does a good rant on the Shelley MQTT info.

                    I also got one of these zigbee devices: Aqara temperature, humidity, TVOC air quality monitor. The latter has smaller display than the Shelley. Both devices give very similar temperature readings but a substantial 10% difference in the humidity readings. I can't be certain but it looks like the zigbee device is less likely to be showing the correct figure. You can add offsets, etc but not too sure how you would actually go about calibrating it.

                    1 Reply Last reply
                    0
                    • akbooerA Offline
                      akbooerA Offline
                      akbooer
                      wrote on last edited by
                      #93

                      Yes, I’ve found significant humidity variation between different devices in the past. It’s a much harder measurement to make accurately than temperature.

                      1 Reply Last reply
                      0
                      • akbooerA Offline
                        akbooerA Offline
                        akbooer
                        wrote on last edited by
                        #94

                        I see that Shelly have now come out with Gen 3 devices, which may explain why there are none of the old ones available now.

                        1 Reply Last reply
                        0
                        • A Offline
                          A Offline
                          a-lurker
                          wrote on last edited by
                          #95

                          Well I compared another Xiaomi humidity temperature device with the Shelley device and got a good match in the readings. It looks like the Shelly device and this particular Xiaomi device are literally out by the old software error factor of one ie a 10% difference. There is an OTA software update available but I can't get it to happen.

                          Anyway I got one of the hairs off my head and proceeded to calibrate it against the Shelly and the Xiaomi devices. I searched & searched and could only find a hair about 2 mm long. Complete waste of time. Maybe alopecia has set in?

                          Great to see the Gen3 device ( they've shrunk the kids once again) - looks like you have your work cut out for you re: openLuup. About a year from now; we'll get to see them on sale here where I live.

                          1 Reply Last reply
                          0
                          • akbooerA Offline
                            akbooerA Offline
                            akbooer
                            wrote on last edited by
                            #96

                            Shelly Plus H&T now back in stock, so I've ordered one.

                            1 Reply Last reply
                            0
                            • A Offline
                              A Offline
                              a-lurker
                              wrote on last edited by a-lurker
                              #97

                              Good news and I still haven't forgotten about Zwave via MQTT! Starting point, at a minimum, would be:

                              • light on/off (although most are dimmers these days, but not all)
                              • blinds up/down - pretty much the same as the above
                              • general purpose outlets (GPO) - pretty much the same as the above
                              • minimotes

                              Some items may be returning power consumption info as well.

                              The above would cover the majority of stuff?

                              1 Reply Last reply
                              0
                              • akbooerA Offline
                                akbooerA Offline
                                akbooer
                                wrote on last edited by
                                #98

                                @a-lurker

                                Good news, in a way! I have received my Plus H&T, and I get exactly the same error.
                                I will work on it…!

                                1 Reply Last reply
                                0
                                • akbooerA Offline
                                  akbooerA Offline
                                  akbooer
                                  wrote on last edited by
                                  #99

                                  @a-lurker

                                  This error is looking very weird: the server says the socket is ready to read, but the read fails. I've added an extra check for the status just before the read, and it looks like this is, indeed, the case.

                                  Apart from blaming a flakey LuaSocket module, I can't, as yet, think how this happens. So still working on it...

                                  1 Reply Last reply
                                  0
                                  • akbooerA Offline
                                    akbooerA Offline
                                    akbooer
                                    wrote on last edited by
                                    #100

                                    @a-lurker

                                    Latest development version (v24.2.8) now supports the Shelly Plus H&T. It should detect a new device when it is reset or generates a normal update. There is a parent Shelly device and temperature and humidity child devices.

                                    The unexplained fixed header byte error remains, but it has no impact since the connection with the device is closed anyway, and the connection remade when the device wakes up again.

                                    I have rounded the humidity reading to the nearest integer, since there's no way that it's that accurate.

                                    A 1 Reply Last reply
                                    0
                                    • akbooerA akbooer

                                      @a-lurker

                                      Latest development version (v24.2.8) now supports the Shelly Plus H&T. It should detect a new device when it is reset or generates a normal update. There is a parent Shelly device and temperature and humidity child devices.

                                      The unexplained fixed header byte error remains, but it has no impact since the connection with the device is closed anyway, and the connection remade when the device wakes up again.

                                      I have rounded the humidity reading to the nearest integer, since there's no way that it's that accurate.

                                      A Offline
                                      A Offline
                                      a-lurker
                                      wrote on last edited by
                                      #101

                                      @akbooer

                                      Tried out the latest software:

                                      • line 583: The newinfo.ip is null, so the software does a return and no device is created. I think, if a static address is set up in the Shelley, this may return an IP address. But I'm using DCHP with statics set there.

                                      • I bypassed the return code by setting the ip address to "1.1.1.1". At line 588 sys.device.name is null. So I gave it a fake name "Shelley_Name" regardless later on you seem to have populated with shellyplusht-<the_id>.

                                      • After setting up the bypass: the parent device was created with the two children. The handler is hit every five minutes and only stops running once it realises the device already exists in function init_device() at line 463. Can this exit be determined earlier in the handler (just my OCD on wasted CPU cycles)?

                                      • The children aren't populated. You have to subscribe to "shellyplusht-<the_id>/events/rpc". Refer to this guys vid. And then look specifically for the event that contains this "method": "NotifyFullStatus". It contains all the good info.

                                      • You can then get the temp & humidity and also the ip address. The battery info has a flag indicating if running of USB (ie 5 Volts) or not. The device id is the Mac address. When you read the mac address, it has had all the colons or dashes removed. Can they be put back in when the MAC address is stored in the device attributes?

                                      Here is the NotifyFullStatus event json and after that I have attached the json used when the device is being created.

                                      So making good progress.

                                      {
                                          "src": "shellyplusht-<the_id>",
                                          "dst": "shellyplusht-<the_id>/events",
                                          "method": "NotifyFullStatus",
                                          "params": {
                                              "ts": 9.37,
                                              "ble": {},
                                              "cloud": {
                                                  "connected": false
                                              },
                                              "devicepower:0": {
                                                  "id": 0,
                                                  "battery": {
                                                      "V": 0.43,
                                                      "percent": 0
                                                  },
                                                  "external": {
                                                      "present": true
                                                  }
                                              },
                                              "ht_ui": {},
                                              "humidity:0": {
                                                  "id": 0,
                                                  "rh": 54.2
                                              },
                                              "mqtt": {
                                                  "connected": true
                                              },
                                              "sys": {
                                                  "mac": "<the_id>",
                                                  "restart_required": false,
                                                  "time": null,
                                                  "unixtime": null,
                                                  "uptime": 9,
                                                  "ram_size": 246872,
                                                  "ram_free": 167920,
                                                  "fs_size": 458752,
                                                  "fs_free": 176128,
                                                  "cfg_rev": 11,
                                                  "kvs_rev": 0,
                                                  "webhook_rev": 0,
                                                  "available_updates": {},
                                                  "wakeup_reason": {
                                                      "boot": "deepsleep_wake",
                                                      "cause": "status_update"
                                                  },
                                                  "wakeup_period": 600
                                              },
                                              "temperature:0": {
                                                  "id": 0,
                                                  "tC": 24.8,
                                                  "tF": 76.7
                                              },
                                              "wifi": {
                                                  "sta_ip": "the_IP",
                                                  "status": "got ip",
                                                  "ssid": "the_SID",
                                                  "rssi": -75
                                              },
                                              "ws": {
                                                  "connected": false
                                              }
                                          }
                                      }
                                      

                                      Device creation - topic "shelly-gen2-cmd/rpc":

                                      {
                                          "id": "table: 0x55a8a880e0",
                                          "src": "shellyplusht-<the_id>",
                                          "dst": "shelly-gen2-cmd",
                                          "result": {
                                              "ble": {
                                                  "enable": false,
                                                  "rpc": {
                                                      "enable": true
                                                  }
                                              },
                                              "cloud": {
                                                  "enable": false,
                                                  "server": "iot.shelly.cloud:6012/jrpc"
                                              },
                                              "devicepower:0": {},
                                              "ht_ui": {
                                                  "temperature_unit": "C"
                                              },
                                              "humidity:0": {
                                                  "id": 0,
                                                  "name": null,
                                                  "report_thr": 5,
                                                  "offset": 0
                                              },
                                              "mqtt": {
                                                  "enable": true,
                                                  "server": "server_ip:1883",
                                                  "client_id": "shellyplusht-<the_id>",
                                                  "user": null,
                                                  "topic_prefix": "shellyplusht-<the_id>",
                                                  "rpc_ntf": true,
                                                  "status_ntf": false,
                                                  "use_client_cert": false,
                                                  "enable_rpc": true,
                                                  "enable_control": true
                                              },
                                              "sys": {
                                                  "device": {
                                                      "name": null,
                                                      "mac": "<the_id>",
                                                      "fw_id": "20231106-160224/1.0.8-gdba0ee3",
                                                      "discoverable": true
                                                  },
                                                  "location": {
                                                      "tz": "some-place",
                                                      "lat": "lat",
                                                      "lon": "lon"
                                                  },
                                                  "debug": {
                                                      "level": 2,
                                                      "file_level": null,
                                                      "mqtt": {
                                                          "enable": false
                                                      },
                                                      "websocket": {
                                                          "enable": false
                                                      },
                                                      "udp": {
                                                          "addr": null
                                                      }
                                                  },
                                                  "ui_data": {},
                                                  "rpc_udp": {
                                                      "dst_addr": null,
                                                      "listen_port": null
                                                  },
                                                  "sntp": {
                                                      "server": "time.google.com"
                                                  },
                                                  "cfg_rev": 11
                                              },
                                              "temperature:0": {
                                                  "id": 0,
                                                  "name": null,
                                                  "report_thr_C": 0.5,
                                                  "offset_C": 0
                                              },
                                              "wifi": {
                                                  "ap": {
                                                      "ssid": "ShellyPlusHT-<the_id>",
                                                      "is_open": true,
                                                      "enable": false
                                                  },
                                                  "sta": {
                                                      "ssid": "some_SID",
                                                      "is_open": false,
                                                      "enable": true,
                                                      "ipv4mode": "dhcp",
                                                      "ip": null,
                                                      "netmask": null,
                                                      "gw": null,
                                                      "nameserver": null
                                                  },
                                                  "sta1": {
                                                      "ssid": null,
                                                      "is_open": true,
                                                      "enable": false,
                                                      "ipv4mode": "dhcp",
                                                      "ip": null,
                                                      "netmask": null,
                                                      "gw": null,
                                                      "nameserver": null
                                                  },
                                                  "roam": {
                                                      "rssi_thr": -80,
                                                      "interval": 60
                                                  }
                                              },
                                              "ws": {
                                                  "enable": false,
                                                  "server": null,
                                                  "ssl_ca": "ca.pem"
                                              }
                                          }
                                      }
                                      
                                      1 Reply Last reply
                                      0
                                      • akbooerA Offline
                                        akbooerA Offline
                                        akbooer
                                        wrote on last edited by
                                        #102

                                        None of this is needed for my config, but indeed I do have a static IP defined.

                                        1 Reply Last reply
                                        0
                                        • A Offline
                                          A Offline
                                          a-lurker
                                          wrote on last edited by a-lurker
                                          #103

                                          Edit : that didn't sound to good on 2nd read, so: yes I'm unsure why you would need an ip address, so not so concerning.

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          Recent Topics

                                          • Set Reaction > Script Action
                                            CrilleC
                                            Crille
                                            0
                                            2
                                            7

                                          • Advice reqeusted to migrate MSR from Bare Metal to Container
                                            T
                                            tamorgen
                                            0
                                            5
                                            70

                                          • Reactor (Multi-System/Multi-Hub) Announcements
                                            toggledbitsT
                                            toggledbits
                                            5
                                            122
                                            37.3k

                                          • Z-Wave Future....
                                            CatmanV2C
                                            CatmanV2
                                            0
                                            5
                                            159

                                          • Can´t restart or upgrade/deploy MSR
                                            toggledbitsT
                                            toggledbits
                                            0
                                            4
                                            111

                                          • [Solved] Limit HA Entity in MSR
                                            wmarcolinW
                                            wmarcolin
                                            0
                                            7
                                            229

                                          • Disaster recovery and virtualisation
                                            CatmanV2C
                                            CatmanV2
                                            0
                                            5
                                            685

                                          • Remote access of Zwave stick from Z-wave server
                                            CatmanV2C
                                            CatmanV2
                                            0
                                            3
                                            401

                                          • Organizing/ structuring rule sets and rules
                                            G
                                            gwp1
                                            0
                                            5
                                            396

                                          • Moving MSR from a QNAP container to RP 5 - some issues
                                            G
                                            gwp1
                                            0
                                            5
                                            372

                                          • Widget deletion does not work and landing page (status) is empy
                                            G
                                            gwp1
                                            0
                                            4
                                            361
                                          Powered by NodeBB | Contributors
                                          Hosted freely by 10RUPTiV - Solutions Technologiques | Contact us
                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Unsolved