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.
A

a-lurker

@a-lurker
Errors after updating to MQTTController build 25139
tunnusT
I'm running MSR build 25139 on Docker, using MQTT controller 24293, and everything working as expected. But if I try to upgrade to MQTTController build 25139, I'm getting the following errors on MSR UI: An Entity Attribute condition in "Lay-Z-Spa auto heating off" (Terrace) failed because the referenced entity "Lay-Z-Spa States" (mqtt>layzspa_states) does not have attribute value_sensor.god Last 11:20:37 An Entity Attribute condition in "Lay-Z-Spa auto heating off" (Terrace) failed because the referenced entity "Lay-Z-Spa States" (mqtt>layzspa_states) does not have attribute temperature_sensor.green Last 11:20:37 An Entity Attribute condition in "Lay-Z-Spa filter pump auto off" (Terrace) failed because the referenced entity "Lay-Z-Spa States" (mqtt>layzspa_states) does not have attribute temperature_sensor.red Last 11:20:37 An Entity Attribute condition in "Lay-Z-Spa filter pump auto run" (Terrace) failed because the referenced entity "Lay-Z-Spa States" (mqtt>layzspa_states) does not have attribute value_sensor.pump Last 11:20:37 An Entity Attribute condition in "Lay-Z-Spa watchdog" (Terrace) failed because the referenced entity "Lay-Z-Spa States" (mqtt>layzspa_states) does not have attribute value_sensor.status Last 11:20:37 My MQTT configuration (local_mqtt_devices.yaml) for the related entity is: layzspa_message: type: ValueSensor capabilities: ["temperature_sensor", "value_sensor", "power_sensor"] primary_attribute: power_sensor.value events: "layzspa/message": "power_sensor.value": json_payload: true if_expr: '! isnull( payload?.PWR )' expr: "float(payload.PWR)" "value_sensor.air": json_payload: true if_expr: '! isnull( payload?.AIR )' expr: "float(payload.AIR)" "value_sensor.pump": json_payload: true if_expr: '! isnull( payload?.FLT )' expr: "float(payload.FLT)" "value_sensor.god": json_payload: true if_expr: '! isnull( payload?.GOD )' expr: "float(payload.GOD)" "value_sensor.lock": json_payload: true if_expr: '! isnull( payload?.LCK )' expr: "float(payload.LCK)" "value_sensor.unit": json_payload: true if_expr: '! isnull( payload?.UNT )' expr: "float(payload.UNT)" "value_sensor.error": json_payload: true if_expr: '! isnull( payload?.ERR )' expr: "float(payload.ERR)" "temperature_sensor.green": json_payload: true if_expr: '! isnull( payload?.GRN )' expr: "float(payload.GRN)" "temperature_sensor.red": json_payload: true if_expr: '! isnull( payload?.RED )' expr: "float(payload.RED)" "temperature_sensor.target": json_payload: true if_expr: '! isnull( payload?.TGT )' expr: "float(payload.TGT)" "temperature_sensor.value": json_payload: true if_expr: '! isnull( payload?.TMP )' expr: "float(payload.TMP)" "temperature_sensor.virtual": json_payload: true if_expr: '! isnull( payload?.VTM )' expr: "round(float(payload.VTM), 1)" "temperature_sensor.ambient": json_payload: true if_expr: '! isnull( payload?.AMB )' expr: "float(payload.AMB)" "layzspa/Status": "value_sensor.status": if_expr: '! isnull( payload )' expr: "payload" "layzspa/button": "value_sensor.button": if_expr: '! isnull( payload )' expr: "payload" and in reactor.yaml I have: "layzspa_states": name: "Lay-Z-Spa States" friendly_name: 'Lay-Z-Spa States' include: layzspa_message I realize my MQTT configuration might be a bit unorthodox, but could there still be something unintentional in the latest MQTTController build? If needed, I can provide detailed logs.
Multi-System Reactor
🎉 My very first MSR controller: OpenSprinkler
therealdbT
Since today is my birthday - and I still pretend to be unconventional - I'm giving away a present to this wonderful community and I'm releasing my first OpenSprinkler controller for MSR. It was real fun to code it - and while it's still WIP, it seems to work OK for me. It's polling-based at the moment, but I'll add support for updates via MQTT very soon (it's already partially coded). Get it at (install is similar to MQTTController and such): https://github.com/dbochicchio/reactor-opensprinkler Feel free to try it. It's beta software, but it's stable. I'll update it weekly until all the tasks from my todo list are empty. Since I've learnt a lot from this controller, I'll explore new controllers soon.
Multi-System Reactor
Set Reaction > Script Action
wmarcolinW
Topic thumbnail image
Multi-System Reactor
Wiring Samotech SM308-S into light fitting
F
Hi Smart Home Community. I have used a Sonos inline WiFi switch to make one of my light fittings smart, but it requires a hard reset for WiFi changes, plus it isn't zigbee compatible, which means I can't use the Hue app to control it with the rest of the lights. To that end I bought a Samotech SM308-S as it is recommended as the better than the Sonos equivalent. I am however not exactly sure how to wire it in. The manual is available here Can anyone help me by clarifying which ports I need to use, and whether I should be using the live or switched live line for live etc. I will be keeping using standard switches for a while, although hope to upgrade to tap dials once I have all the fittings upgraded. Thanks
Hardware
Advice reqeusted to migrate MSR from Bare Metal to Container
T
Good day all, I'm in the process of trying to shut down my 10 year old Linux home server that served many purposes, but primarily it's what I used for my NAS/Plex Media server. I migrated the NAS aspect of the server in November of last year to a true NAS solution (Ubiquti UNAS Pro), which is rack mount and much more efficient than my old tower, which it's only side benefit was heating my home office during the winter. Unfortunately it also means heating my home office during the summer, which were about to be in full swing. I have two things running on this 10 year old server at this point. MSR and pi-hole. I'm running Plex Media Server on Fedora Workstation in Podman on mini PC, which is much more energy efficient than my old tower. My next step is to migrate MSR. I know there are images of MSR out there, and creating it is well documented. I'm going to be using Podman instead of Docker for various reasons, but they work very similar. What I don't know, is what I need to do to migrate my existing Bare Metal installation over to a container. Has anyone done this? Any advice?
Multi-System Reactor
Reactor (Multi-System/Multi-Hub) Announcements
toggledbitsT
Build 21228 has been released. Docker images available from DockerHub as usual, and bare-metal packages here. Home Assistant up to version 2021.8.6 supported; the online version of the manual will now state the current supported versions; Fix an error in OWMWeatherController that could cause it to stop updating; Unify the approach to entity filtering on all hub interface classes (controllers); this works for device entities only; it may be extended to other entities later; Improve error detail in messages for EzloController during auth phase; Add isRuleSet() and isRuleEnabled() functions to expressions extensions; Implement set action for lock and passage capabilities (makes them more easily scriptable in some cases); Fix a place in the UI where 24-hour time was not being displayed.
Multi-System Reactor
Z-Wave Future....
DesTD
https://forum.z-wave.me/viewtopic.php?f=3417&t=36140 That's not a good thing I think Time to switch again?
Z-Wave.me
Can´t restart or upgrade/deploy MSR
F
Topic thumbnail image
Multi-System Reactor
[Solved] Limit HA Entity in MSR
wmarcolinW
Topic thumbnail image
Multi-System Reactor
Disaster recovery and virtualisation
CatmanV2C
Following on from my last thread, some progress has been made over the weekend. With 18G of spanky RAM in my Synology DS224+. I've jumped into the murky world of virtualisation and already eliminated the need for two Raspberry Pi's from my system. Home Assistant: In theory they provide an OVA file which is supported by the Synology. I couldn't get it to work, however, so grabbed a copy of the .img file they supply, renamed it .iso and imported it as a VM. Restored from my full back up and that all seems fantastic. Minidnla Music server: Trivial. Grabbed a Debian .iso for Bookworm and copied that onto the NAS. Created a new machine which mirrored the specs of the Raspberry Pi, booted from the ISO then did an expert install. Once that was all stable with a basic core of stuff and networking, I've made a copy of that as a good base system. Then fired up minidnla on it, mounted my media and that's also woking. Not bad for a short weekend's work. Still not sure about the main NUC though. I'm thinking of buying a new USB stick so I can mess around getting it working on the Synology before I do anything drastic. Once that hurdle is sorted I'm torn between: Using a brand new install of Bookworm, re-installing Z-way server, OpenLuup, AltUI, MSR and HA bridge, then restoring across or Making an ISO of the current system, importing that and upgrading in place (which will be pretty risk free since I can snapshot everything before I make any changes.) Decisions, decisions. C
General Discussion
Remote access of Zwave stick from Z-wave server
CatmanV2C
Topic thumbnail image
Software
Organizing/ structuring rule sets and rules
R
Hi guys, Just wondering how you guys organize your rule sets and rules. I wish I had an extra layer to have some more granularity, but my feature request was not popular. Maybe there are better ways to organize my rule sets. I use the rule sets now primarily for rooms. So a rule set per room. But maybe grouping by functionality works better. Any examples/ suggestions would be appreciated.
Multi-System Reactor
Moving MSR from a QNAP container to RP 5 - some issues
Tom_DT
Topic thumbnail image
Multi-System Reactor
Widget deletion does not work and landing page (status) is empy
M
Topic thumbnail image
Multi-System Reactor
Need help reducing false positive notifications
T
Topic thumbnail image
Multi-System Reactor
Deleting widgets
tunnusT
Hopefully a trivial question, but how do you delete widgets in a status page? Using build 22266
Multi-System Reactor
MQTT configuration question
tunnusT
I have the following yaml configuration in local_mqtt_devices file x_mqtt_device: set_speed: arguments: speed: type: str topic: "command/%friendly_name%" payload: type: json expr: '{ "fan": parameters.speed }' While this works fine, I'm wondering how this could be changed to "fixed" parameters, as in this case "fan" only accepts "A", "Q" or a numeric value of 1-5?
Multi-System Reactor
System Configuration Check - time is offset
F
Hi! I get this message when I'm on the status tab: System Configuration Check The time on this system and on the Reactor host are significantly different. This may be due to incorrect system configuration on either or both. Please check the configuration of both systems. The host reports 2025-04-01T15:29:29.252Z; browser reports 2025-04-01T15:29:40.528Z; difference 11.276 seconds. I have MSR installed as a docker on my Home Assistant Blue / Hardkernel ODROID-N2/N2+. MSR version is latest-25082-3c348de6. HA versions are: Core 2025.3.4 Supervisor 2025.03.4 Operating System 15.1 I have restarted HA as well as MSR multiple times. This message didn´t show two weeks ago. Don´t know if it have anything to do with the latest MSR version. Do anyone know what I can try? Thanks in advance! Let's Be Careful Out There (Hill Street reference...) /Fanan
Multi-System Reactor
Programmatically capture HTTP Request action status code or error
therealdbT
I have a very strange situation, where if InfluxDB restarts, other containers may fail when restarting at the same time (under not easy to understand circumstances), and InfluxDB remains unreachable (and these containers crashes). I need to reboot these containers in an exact order, after rebooting InfluxDB. While I understand what's going on, I need a way to reliable determine that InfluxDB is not reachable and these containers are not reachable, in order to identify this situation and manually check what's going on - and, maybe, in the future, automatically restart them if needed. So, I was looking at HTTP Request action, but I need to capture the HTTP response code, instead of the response (becase if ping is OK, InfluxDB will reply with a 204), and, potentially, a way to programmatically detect that it's failing to get the response. While I could write a custom HTTP controller for this or a custom HTTP virtual device, I was wondering if this is somewhat on you roadmap @toggledbits Thanks!
Multi-System Reactor
ZwaveJSUI - RGBWW BULB - Warm/Cold White interfered with RGB settings - Bulb doesn't change color if in WarmWhite state.
N
Hi , I'm on -Reactor (Multi-hub) latest-25067-62e21a2d -Docker on Synology NAS -ZWaveJSUI 9.31.0.6c80945 Problem with ZwaveJSUI: When I try to change color to a bulb RGBWW, it doesn't change to the RGB color and the bulb remains warm or cold white. I tryed with Zipato RGBW Bulb V2 RGBWE2, Hank Bulb HKZW-RGB01, Aentec 6 A-ZWA002, so seems that it happens with all RGBWW bulb with reactor/zwavejsui. I'm using from reator the entity action: "rgb_color.set" and "rgb_color.set_rgb". After I send the reactor command, It changes in zwavejsui the rgb settings but doesn't put the white channel to "0", so the prevalent channel remains warm/cold White and the bulb doesn't change into the rgb color. This is the status of the bulb in zwavejsui after "rgb_color.set" (235,33,33,) and the bulb is still warmWhite. x_zwave_values.Color_Switch_currentColor={"warmWhite":204,"coldWhite":0,"red":235,"green":33,"blue":33} The "cold white" and "warm white" settings interfer with the rgb color settings. Reactor can change bulb colors with rgb_color set — (value, ui8, 0x000000 to 0xffffff) or rgb_color set_rgb — (red, green, blue, all ui1, 0 to 255) but if warm or cold white are not to "0", zwavejsui doesn't change them and I can't find a way to change into rgb or from rgb back to warm white. So if I use from reactor: rgb_color set_rgb — (235,33,33) in zwavejsui I have x_zwave_values.Color_Switch_targetColor={"red":235,"green":33,"blue":33} 14/03/2025, 16:43:57 - value updated Arg 0: └─commandClassName: Color Switch └─commandClass: 51 └─property: targetColor └─endpoint: 0 └─newValue └──red: 235 └──green: 33 └──blue: 33 └─prevValue └──red: 235 └──green: 33 └──blue: 33 └─propertyName: targetColor 14/03/2025, 16:43:57 - value updated Arg 0: └─commandClassName: Color Switch └─commandClass: 51 └─property: currentColor └─endpoint: 0 └─newValue └──warmWhite: 204 └──coldWhite: 0 └──red: 235 └──green: 33 └──blue: 33 └─prevValue └──warmWhite: 204 └──coldWhite: 0 └──red: 235 └──green: 33 └──blue: 33 └─propertyName: currentColor In zwavejsui, the bulb changes rgb set but warm White remains to "204" and the bulb remais on warm White channel bacause is prevalent on rgb set. x_zwave_values.Color_Switch_currentColor_0=204 x_zwave_values.Color_Switch_currentColor_1=0 x_zwave_values.Color_Switch_currentColor_2=235 x_zwave_values.Color_Switch_currentColor_3=33 x_zwave_values.Color_Switch_currentColor_4=33 Is it possible to targetColor also for "warmWhite" and "coldWhite" and have something similar to this? x_zwave_values.Color_Switch_targetColor={"warmWhite":0,"coldWhite":0,"red":235,"green":33,"blue":33} Thanks in advance.
Multi-System Reactor
About
Posts
260
Topics
36
Shares
0
Groups
0
Followers
1
Following
0

Posts

Recent Best Controversial

  • Help with Luup Reloads
    A a-lurker

    Mmmmm - interesting - I've had a very similar experience with a couple of Veras. One of the Veras; I recently turned off the WiFi and I have never heard from it since; even though it has always successfully conversed via a hardwired LAN interface for years.

    akbooer I recommend you ditch the Edge - it's costing you money at about 0.24 kW hrs per day. Further still, I recommend you use openLuup. It works well and the developer? - don't stuff around. Please donate as he or she requests.

    Vera

  • Sun position or light sensor for blinds?
    A a-lurker

    @akbooer said in Sun position or light sensor for blinds?:

    Yes, it's all been done. You need @futzle's Heliotrope plugin.

    Out of interest; I've modified/updated and re released Futzle's Heliotrope plugin in the AltApp store (with Futzle's permission).

    Likewise; I've modified/updated and re released Chris Jackson's EDS one wire server plugin in the AltApp store (with Chris's permission).

    Code/Snippet library

  • List of plugins available at the Alternative App Store
    A a-lurker

    For the most up-to-date list refer to the openLuup documentation.

    The plugins listed here are available via the Alternative App Store. The app store becomes accessible via a new menu item in the Alternative User Interface once configured.

    Both the Alternative User Interface (AltUI) and AltAppStore (AltAppStore) plugins need to be installed on Vera to access the store. With openLuup; this is all "automatically" set up and ready to go as part of the openLuup suite.

    The Alternative App Store can be found here.

    Publishing a plugin in the store is pretty easy. First your plugin code must be available in GitHub. Publish it, using the Publish command in the AltAppStore web page. You need to enter the salient information and it's ready to go.

    Plugin icons can be stored on GitHub eg like so. After a "few days" the raw json describing the plugin appears here.

    Vera 3 users should note the store will not work, as Vera 3 doesn't have the https capability required to access GitHub. However, the apps can always be downloaded from GitHub and manually installed.

    For those just interested in what the store contains; refer to the list below - as of 2021 July 27 there were about 75 plugins available:

    Plugin Comments
    ABC:
    Aeratron fans
    Alternative App Store Built into openLuup
    ALTHue
    ALTUI
    Amcrest Dahua
    AutoVirtualThermostat
    BroadLink-Mk2
    Canal Plus Not in GitHub
    Countdown Timer Originated by Futzle
    DEF:
    DALI Planet
    DarkSky Weather Support for the Dark Sky API ended 31 Mar 2023. The "Multi Provider Weather Station" plugin can potentially be used as a replacement.
    DataYours
    DelayLight
    DeusExMachinaII
    Domoticz Bridge Non functional: needs work check here
    Domoticz Bridge 2 Originated by 999LV and updated by perhusaas
    DreamColorESP8266
    DreamColorLedRGB
    Ecobee
    Edisio Gateway
    EDS One Wire Server Originated by Chris Jackson
    EKM metering
    Emby Interface
    Enphase Envoy Solar Monitor
    EventWatcher
    Ezlo Bridge
    FritzBox Sensor
    GHI:
    Google Calendar 3
    Harmony Hub Control
    Heliotrope Originated by Futzle. openLuup incorporates the same functionality, so this plugin is not required in that casse.
    Homebridge 2 openLuup
    HomeWave Push
    HundredGraphs Logger
    IKEA Tradfri
    Image Map Remote
    Info Viewer For Vera only
    IPhone Locator
    IPX800
    Irrigation Caddy
    JKL:
    KSenia Lares 16 Bridge
    LuaView
    MNO:
    MetOffice DataPoint
    Multi Provider Weather Station
    Netatmo
    Network Monitor
    OpenSprinkler
    OpenTherm Gateway
    openWeather Support for the Wunderground weather API ended Dec, 2018. The "Multi Provider Weather Station" plugin can potentially be used as a replacement.
    PQRS:
    Paradox EVO IP150 web page scrapper
    Pioneer Receiver
    Rachio
    Rainforest Eagle Based on robertmm's work
    RaZberry (ALPHA)
    Reactor
    RGB Controller
    Rules Engine
    SiteSensor
    SMA inverter
    Smartmeter Reader
    Solar Meter
    Sonos Originated by lolomodo and updated by toggledbits.
    Sony Bravia IP
    Surveillance Station Remote (BETA)
    Switchboard
    TUV:
    Telegram
    Tesla Car
    UPS Sensor
    UPnP Event Proxy Modified for installs that have systemd available. Not suitable for Vera - plugin originated by Futzle.
    VeraAlexa
    Virtual Devices MQTT commands & status are only available with openLuup. http & Lua can be used by Vera and openLuup.
    Virtual Pronto Remote
    Virtual Sensor
    VW CarNet
    WXYZ:
    WES
    Xee
    Yamaha RX HTTP
    Z-Way
    ZiBlue Gateway
    ZiGate Gateway
    Code/Snippet library

  • ChatGPT - finally I can now retyre in piece and quite, knowing everting is in goof hands.
    A a-lurker

    Me:

    What is the likelihood of the iot business Ezlo remaining in business?

    It:

    It is difficult to answer this question since it depends on a variety of factors such as market conditions, customer demand, and the company's financial stability. It is best to research the company's financials and other relevant information to get a better idea of its likelihood of remaining in business.

    Mmmm - great weasel words. Political staffers will love this.

    General Discussion

  • Zigbee Smart bridge
    A a-lurker

    I use openLuup with Zigbee2MQTT on a RasPi and it's been working with no issues. Plus you get all of the benefits and flexibility of using openLuup and AltUI plus about seventy or so available plugins to mess with.

    Zigbee

  • UPnP event proxy plugin using systemd service file
    A a-lurker

    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

  • ChatGPT - finally I can now retyre in piece and quite, knowing everting is in goof hands.
    A a-lurker

    Me:

    Chatgpt. You have been accused of just being a disguise for an Indian call center. What say you?

    It:

    I am not a disguise for an Indian call center. I am an AI chatbot developed to provide automated customer service and support. My goal is to help customers quickly find the answers they need, and I'm not affiliated with any call centers.

    Me:

    Who is CatmanV2 on the IOT forums?

    It:

    CatmanV2 is a member of the Internet of Things (IOT) forum, an online discussion platform for professionals and enthusiasts in the IOT industry. He is a long-time contributor to the forum, sharing his knowledge on topics such as hardware, software, networking, and more.

    General Discussion

  • Power outage and all the Vera devices were moved to room MiOS-xxxxx. How to fix?
    A a-lurker

    @Buxton OK got the systemd stuff working - thanks for that. A of couple notes for future readers:

    • The script files need to be executable, so the permissions should be set to 0755.
    • the scripts should use \n, not \r\n line endings ie Unix style
    • you need to run this once to get the necessary symlinks built:
    sudo systemctl enable openluup
    Vera Bridge

  • ChatGPT - finally I can now retyre in piece and quite, knowing everting is in goof hands.
    A a-lurker

    Me:

    Who is LibraSun who frequents the IOT smarthome community forum and the vera forum. Unmask their 1980s hacker persona.

    It:

    LibraSun is actually the hacker persona of legendary computer programmer and software engineer redacted, otherwise known as "Captain redacted". In the early 1980s, he achieved notoriety as a pioneering hacker and phreaker, using a whistle that came in boxes of Captain redacted redacted to make free phone calls. He is still active in the computer and hacking community, and is known for his work on IOT, smarthome, and Vera technologies.

    Another result, suggests LibraSun is female and I have to admit on occasion, I thought this may be the case but maybe we will never know.

    General Discussion

  • AltUI sans internet connection
    A a-lurker

    Just on AltUI:

    The browser would be downloading any number of resources first time round from various servers. But I would have thought the majority of servers would be using some sort of cache control header combinations to the command the browser's caching. You don't need to be downloading jquery every time you hit a web page and I think it's unlikely that would be happening.

    So I would have thought that the browser (for AltUI) could have cached most of what AltUI needed? What resource is the browser calling up that it can't download with the internet connection down? Maybe AltUI could have functioned but in some sort of reduced capability mode?

    But yes the openLuup console, as I understand it, has been written to not rely overly on outside resources. Surprising akbooer could get it work!!

    Software

  • Using the vera with external usb zwave or zigbee dongle
    A a-lurker

    I developed this mapping table in answer to some of my own questions above.

    Vera

  • Power outage and all the Vera devices were moved to room MiOS-xxxxx. How to fix?
    A a-lurker

    akbooer thanks for the help. I seem to have it sorted out now. I do note that in the console/utilities/backups, that if you click on one of any the backups listed, a *.json file is presented for download rather than a *.lzap file. Not that it matters, as openLuup_reload seems to take either file type as a parameter and handle it accordingly. Like wise if you click on the "Backup Now" button, you a presented with a file that begins with "backup_backup.openLuup ...." Looks like the backup directory name has been prefixed to the filename. Not that matters either. A back up is a back up.

    Vera Bridge

  • Using luup.call_delay() in the browser code test boxes
    A a-lurker

    @akbooer said in Using luup.call_delay() in the browser code test boxes:

    but have forgotten the details of how Vera behaved!

    Just to remind you; badly.

    OK not surprised I'm going around in circles - I should know better by now. I modified the example code to write to the log, instead of the UI. In Vera, in either Vera's UI or AltUI the log shows:

    LuaInterface::CallFunction_Timer-5 function delayTest failed [string "local altui_device = 5..."]:10: bad argument #1 to 'insert' (table expected, got string)
    

    Using AltUI with openLuup, I get similar, where 0x27151d0 is the called function (as printed by the test code):

    luup.delay_callback:: function: 0x27151d0 ERROR: [string "RunLua"]:10: bad argument #1 to 'insert' (table expected, got string)
    

    OK so then I test it in one of openLuup's three console test windows (I came across these just recently) and as expected with your code; it all works! I think I figured it had all failed because I never saw the test code printed in the log. Your console test windows just show this, rather than listing the code:

    openLuup.server:: POST /data_request?id=XMLHttpRequest&action=submit_lua&codename=LuaTestCode2 HTTP/1.1 tcp{client}: 0x33b3328
    

    So it can be made to work - looks like altUI and Vera UI need to pass the function reference, not the function name string? Or whatever is needed.

    Out of interest I have noted that luup.call_delay can use sub one second delays in openLuup as previously mentioned on the Vera forum. I'm unsure if Vera can or can't.

    I did some tests and found on a rasPi that occasionally, a one second delay could be well over one second on occasions (have seen two seconds). There could be any number of reasons for this - just measuring the time alone affects the timing (I used socket.gettime()). Plus with different things happening at the same time, it can get weird. But I do have a plugin that runs code every minute and receives/handles a lot of bytes, one by on, via the infamous Vera "'incoming" feature. I should probably rewrite that plugin code one day, if I can rember how it all worked.

    There may even be an argument to code a finite reduction in all delays by some fudge factor representing the delay processing time eg say 20 milliseconds but that's getting too pedantic.

    General Discussion

  • Hue dimmer as replacement for MiniMote remote
    A a-lurker

    @akbooer Interested to see that you have ditched Z-wave. My Vera does Z-wave only and I am thinking of moving that to Z-way from the Vera. But now Z-Wave JS seems to be pretty good. Not sure how the latter works but it looks like Home Assistant would be required. I've got a lot of Z-wave device inside walls and I'm paranoid the Z-wave system will collapse one day.

    The Shellys devices are inexpensive and flexible but I wondering if you have any falling off your network, from time to time, being none meshed WiFi devices? The premises are pretty large here and would probably need WiFi repeaters to keep things working with Shellys. I assume you're using MQTT with these?

    I'm interested in how to configure the Hue buttons to be scene triggers in openLuup. I think that I could make use of a few. However, I'm not clear on how this is configured. Any hints appreciated.

    Hardware

  • Yamaha Plugin
    A a-lurker

    Logs are are "good".

    Vera/openLuup plugins

  • Vera PushOver notification with image
    A a-lurker

    The code in your link was messed up when they updated that forum some years ago. I've rehashed it to give it a chance of working but I suspect you may still have trouble getting it to work. Running it in the Lua test window would be your starting point after reading the
    push over api doco.

    Another alternative is to use Telegram with the Telegram plugin.

    -- Refer to pushover documentation:
    --   https://pushover.net/api
    
    local pushToken    = "YourPushOverTokenHere"
    local pushUser     = "YourPushOverUserCodeHere"
    local pushTitle    = "MessageTitle"
    local pushMessage  = "MessageContent"
    local snapshotFile = "/tmp/camera_snapshot.jpg"
    local pushPriority = "1"
    
    -- Sound could be: pushover bike bugle, cash register, classical, cosmic, falling,
    -- gamelan, intermission, magic, mechanical, pianobar, siren, spacealarm, tugboat,
    -- alien, climb, persistent, echo, updown, none
    local pushSound = "gamelan"
    
    -- Link to the BlueIris videostream of that camera
    local pushUrl = "http://xxx.xxx.xxx.xxx/mjpg/ShortCamName&user=XXX&pw=XXX"
    local pushUrlTitle = "Camera Name"
    
    -- This points to one of my BlueIris managed cameras
    local camera = "http://xxx.xxx.xxx.xxx/image/ShortCamName?q=50&s=80&user=XXX&pw=XXX"
    
    -- Get the snapshot from the camera
    local out = assert(io.open(snapshotFile, "wb"))
    local _,data = luup.inet.wget(camera)
    out:write(data)
    assert(out:close())
    
    --Send PushOver request
    local curlCommandTab = {}
    
    table.insert (curlCommandTab, 'curl -s')
    table.insert (curlCommandTab, '-F "token='      ..pushToken    ..'"')
    table.insert (curlCommandTab, '-F "user='       ..pushUser     ..'"')
    table.insert (curlCommandTab, '-F "title='      ..pushTitle    ..'"')
    table.insert (curlCommandTab, '-F "message='    ..pushMessage  ..'"')
    table.insert (curlCommandTab, '-F attachment=@' ..snapshotFile ..'"')
    table.insert (curlCommandTab, '-F "sound='      ..pushSound    ..'"')
    table.insert (curlCommandTab, '-F "priority='   ..pushPriority ..'"')
    table.insert (curlCommandTab, '-F "url='        ..pushUrl      ..'"')
    table.insert (curlCommandTab, '-F "url_title='  ..pushUrlTitle ..'"')
    
    -- The .json suffix requests that the response be in JSON format
    table.insert (curlCommandTab, 'https://api.pushover.net/1/messages.json')
    
    local curlCommand = table.concat (curlCommandTab, ' ')
    print(curlCommand)
    
    local handle = io.popen(curlCommand)
    local result = handle:read("*a")
    handle:close()
    print (result)
    
    -- Delete temporary snapshot
    os.remove (snapshotFile)
    
    
    Vera

  • Status Board - What’s your HA Information Dashboard ?
    A a-lurker

    AK - have to say I've been a bit lazy on keeping up with openLuup's graphing ability (and reading the manual). I see I can graph virtually anything listed here: Console--> Historian-->Cache. There is also DataYours but currently I'm doing this (can't even remember how this works):

    http://openLuupIPaddress:3480/data_request?id=lr_render&target={cpu.d,memory.d}&title=CPU (%) Memory (Mb)&height=750&from=-y

    Unsure what's ancient technology or what each one entails eg AFAIK Grafana needs a Grafana server to be set up, etc. Presume that can be done on a RasPi.

    What URL shows what you have shown above.(may be we need a new thread for openLuup graphing techniques?)

    General Discussion

  • 20 amp smart physical switch (to control Infratech heater) - preferable to be outdoor rated, but any
    A a-lurker

    May be better to get a DIN rail high powered contactor and use a Shelly to flip that on & off.

    Hardware

  • Logic Programming
    A a-lurker

    @akbooer a few months back, you hinted in post somewhere (can't find it), that you were working on a "new project"! It will be interesting to see how this works out.

    In the openLuup realm you already have a large database of "Facts" that you can "Query" and apply "Rules" to - so off to a good start from that aspect. (don't quote me on the nomenclature).

    The book referenced above can be downloaded from here: The Art of Prolog along with many other relevant texts.

    This one is also a favorite - it can be downloaded but I don't have an account and I already have a physical copy (might be worth a few bucks on ebay). May be someone else could download the pdf and post it here? Not the latest Prolog but interesting all the same. The Borland people had some great products in the old days.

    @mrFarmer said: flashback to University... you know one of those things made out many sheets of paper.

    Yeah - you knew you were getting the latest stuff when it was a pile of photostats stapled together.

    Vera/openLuup plugins

  • Ways to identify and calculate energy usage (watts) ?
    A a-lurker

    Have a look at any split aircons or aircons in general. Older models had sump heaters that could use anything from 30W to 300W. These were permanently on. Also iron core transformers that are permanently connected eg door bells and alarm systems - they can be quite lossey. Older PCs also drew a far bit even when "off". In fact, lots of older equipment can draw substantial power when on standby. So much so the One Watt Initiative was instigated.

    General Discussion
  • Login

  • Don't have an account? Register

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