Everything posted by Goose66
-
Deactivating MyQ Plugin
Given everything that happened with Chamberlain and their intentional blocking of non "trusted partner" access to their control API, I am disabling the MyQ plugin in the Plugin Store. After some time, I imagine it will be removed. For an alternative, fully local and instant status (no polling) solution, check out the ratgdo device and the ratgdo plugin here: https://forum.universal-devices.com/forum/436-ratgdo/.
-
Why does this code not work?
Cleanest solution here (and just about all other instances with motion/presence triggering events and timed activities) is the two program solution: First program: Utility Room Motion (Enabled) If 'Wireless Tags / Utility Room Sensor' Event State is Detected Movement Then Run Program 'Utility Room Lights on Motion' (Then Path) Else - No Actions - (To add one, press 'Action') Second program: Utility Room Lights on Motion (Disabled) If - No Conditions - Then Set 'Basement / Utility Room' On Wait 15 minutes Set 'Basement / Utility Room' Off Else - No Actions - (To add one, press 'Action') When the Wireless tag sends movement, the first program starts the second program, and the second program turns on the lights, starts the timer, and turns off the lights when the timer expires. Subsequent motion from the Wireless tag turns the lights on again and resets the timer. 15 minutes after the last motion detected, the lights turn off. An advantage to this structure is that it works whether or not your Wireless Tag (or other motion detector) sends a DOF (No Motion) command after some delay.
-
Changing _MQTT_TOPIC_PREFIX
Mine is dry contact mode and I never get light or lock status. But that’s not really germane to my point. To the point of initial status, when you start the plugin, the initial subscription to the MQTT should cause any retained messages to be sent. For example the plugin gets the online status right away. In my case, however, I don’t get a doorstate until the doorstate changes. And if IIRC, when I shutdown MQTT explorer and restart it, the door state is gone until the state changes. I can look at it when I return on Jan. 2. Moreover, there doesn’t appear to be an MQTT command I can send that forces the ratgdo device to update all states (e.g., as in the case of Tasmota), so we may have to log an issue with the ratgdo developer to either add such a command or change the retention of the state messages.
-
Changing _MQTT_TOPIC_PREFIX
I’m not seeing that from my ratgdo connected to my Polisy MQTT broker.
-
Changing _MQTT_TOPIC_PREFIX
If you restart MQTT explorer, do you still see all of those statuses? Or is it only after MQTT explorer has been running for a while that the all get values?
-
plugin works...im an idiot...
As to firmware or plugin? As far as the plugin is concerned, I want to change the discovery process to pickup the configured MQTT topics for the device(s) so that folks can have it work with IoX and Home Assistant at the same time. I’m am waiting to see if any firmware changes or issues crop up to include in the next release.
-
Thermostat External Sensor temp not being updated
Going through the code and the two log files you sent more thoroughly, it appears to work the way I understood it to work above. What you are saying is happening and what I see in your log files and in the code just don't comport. It appears that the "name" of hardwired temperature sensors comes from the selected type, where wireless sensors have a separate, configurable name. It further appears that, after initial discovery, the names (not the addresses) of the nodes (both thermostat nodes and sensor nodes) were all changed in the Admin Console, and somehow these name changes propagated their way back into the PG3 database. I can see this in your log file(s) on the initial loads of the nodes on restart of the plugin. Now, this is not supposed to be possible, unless you modify the PG3 database directly. Another possibility is that an update to the Thermostat firmware changed the way the thermostat reports the sensor names through the API, but this doesn't seem likely given the specificity of some of the current node names. Moreover, with the node names of the sensors like they currently are (i.e., 'Internal Temp sensor', 'Outdoor Temp Sensor', 'Attic Temp Sensor', and 'Media Temp Sensor') and the thermostats returning the names of the sensors as "Thermostat", "Outdoor", and "Remote", there should be no way that any of the sensor nodes are having the proper temperature reported. I think the only way to make sure it is all correct is to delete all of your Thermostat and Sensor nodes from the plugin using PG3 Dashboard (allowing the change to propagate to IoX), restart the plugin, then perform the discovery again. All of the nodes when recreated should have all of the same node addresses so your programs should all work correctly. I believe you should be able to change the names for thermostats and temperature sensors that appears in IoX through the Admin Console without changing the names from discovery in the PG3 database, but I am checking on that with some other folks.
-
Thermostat External Sensor temp not being updated
I have to go back to the code again - thought I understood how it worked.
-
Thermostat External Sensor temp not being updated
Look at the third entry of the log entries you posted above. The Thermostat is reporting it as “Outdoor” instead of “Outdoor Temp Sensor”. So it can’t match it up.
-
Thermostat External Sensor temp not being updated
It needs to be renamed in the Venstar thermostat.
-
Thermostat External Sensor temp not being updated
It appears that the names of the sensors from Venstar thermostats were changed after the Discovery process that found the thermostat(s) and created the nodes. For example, the sensor node for the Outdoor temp was initially created with the name "Outdoor Temp Sensor" but now appears to be called "Outdoor." Because the remote sensors are separate nodes, they have node addresses that are an extension of the thermostat node address, and the way the plugin links them back to the node is through the name, so the names have to match what the original node has. Two ways to fix this: 1) change the names of the remote sensors back to what they were (you can see these names in the Node listing in PG3 Dashboard) or 2) remove the node and rediscover the thermostats. If choosing #2, remember that the dynamic discovery no longer functions because of a change made in PG3/PG3x. I need to fix that, but in the meantime you can just list the hostnames/IP addresses of your thermostats in the "hostname" Custom Configuration Parameter (separated by semicolons) and then click "Discover" in the PG3 Dashboard to recreate all the nodes. The nodes should retain the same addresses, so your programs should all continue to work.
-
Human Presence Detector Trial #1
@EWhitesend them on when you have a chance
-
Changing _MQTT_TOPIC_PREFIX
This comes down to design approach. In order to get it out quickly, the first version of the ratgdo plugin was based on the Tasmota plugin. The Tasmota plugin, like the ratgdo plugin, can support any number of devices. In order to simplify management of MQTT subscriptions for an arbitrarily large number of device, the Tasmota plugin relies on a top-down topic format, i.e., a broad topic prefix (in this case "tasmotans/") that supports a single subscription, and then narrowing topic segments for device ID and finally message type ("STAT", "CMND", "TELE"). Without this top-down topic format, you would have to create and manage separate subscriptions (and more specifically three distinct subscriptions) for each Tasmota device. If you were to have, say, 100 Tasmota devices in your HA system, you can see how this may get ungainly. The Tasmota plugin actually has a Custom Configuration Parameter for changing the broad topic prefix (though it's not documented), but allowing the full topic to be configured is not supported because of this top-level topic subscription limitation. The ratgdo plugin, however, only really supports ratgdo devices, and this limits the total number of devices it would support, and thus the number of MQTT subscriptions that would be needed for each device to have its own subscription(s) (one command and one status topic per device). So getting rid of the need for top-down topic format is doable in this plugin. In fact, the HA discovery messages that are published by the ratgdo devices contain their command and status topics in the payload, thus no specific configuration of MQTT topics through Custom Configurations Parameters would be needed. As long as the topics you have configured work with Home Assistant and the HA discovery process, the ratgdo plugin should be able to get them in discovery and use them. This is already on the roadmap for the plugin, and, while it's not a trivial change (the GDO nodes have to be coded to remember the topics and set their own subscriptions upon plugin restart), it should be included in the next release (3.1.x). It will mean you will have to delete your nodes and rediscover them when this release comes out, but all of your programs should continue to work.
-
Human Presence Detector Trial #1
@EWhite It appears to be based on the Sonoff Basic module. While I’m still learning all the ins and outs of Tasmota, unfortunately, this doesn’t tell me much. Without one here to test with, I would need complete documentation of the MQTT topics and payloads that it generates and/or consumes, including the discovery messaging, preferably with discovery set to Tasmota protocol as opposed to Home Assistant protocol.
-
Adding a Matter/Thread device
Answering my own question, it doesn’t look like it supports Tasmota. I thought Eve devices did.
-
Adding a Matter/Thread device
Can you flash the Eve motion sensor with Tasmota? If so, you can get it working with the MQTT plugin, or I can work with you to add it to the Tasmota plugin.
-
plugin works...im an idiot...
It’s fortuitous you mentioned that. If you go from the documentation to the Github project using the link on the page (https://github.com/PaulWieland/ratgdo), you get to a project with no issues or discussions. So I was thinking there wasn’t a lot of movement on the firmware. However, after reading your post I did a Google search for “MQTT” and “ratgdo” and found the GitHub project you are referring to. I will get some of my issues posted.
-
plugin works...im an idiot...
The ratgdo device firmware definitely has some problems - not making the configured device name have to be a valid MQTT topic is just one of them. Another one is the retention settings for the state messages. Hopefully, when he can catch up with deliveries, he will circle back to the firmware.
-
ratgdo Experiences
You need 3.3v so don’t know if you are getting that out of any GDO. There are 3.3v power supplies out there, however, with micro-USB connector or can be wired into the ratgdo directly. Look for a 3.3v one for an Arduino.
-
Door Status issue
Problem 1 - Door State: fixed - even though I had changed the profile and code to use the Index UOM (25) for door state, since the nodes were created in v3.0.1 of the plugin, they are stuck in the PG3 database with the Barrier Status UOM (97). IMHO, state values should never be stored in a database for any reason, but in this particular case it means there was only one way to fix it: delete all of your nodes (in PG3 dashboard), restart the node server, and perform Discovery again. Instead, I just forced the code to report the door state explicitly using the Index UOM every time it is updated, so the two of you won't have to recreate your nodes. Problem 2 - Lockout State: fixed - had an "if" that should have been an "else if". Thanks for the testing!
-
ratgdo PG3 Plugin Released
I have published a new version of the ratgdo plugin (v3.0.3). This version fixes the lockout status (no really this time) and forces the door state to utilize the index UOM everytime it is reported so users of the 3.0.1 version don't have to delete their nodes and start again.
-
Door Status issue
Probably best for feedback in a new topic for each major issue. This relates to the change in UOM of door state from built-in Barrier Status to a custom index UOM. It looks like, despite having upgraded the plugin, that your Admin Console is still using the old profile with Barrier Status. Restarting the Admin Console should clear it up. If not, you may need to reload the Profile for the plugin in the PG3 Dashboard and then restart the Admin Console. The joys of being an early adopter! 😁
-
ratgdo Experiences
Multiple options are good. I myself have gone back and forth on the idea of making one plugin that works with everything that Home Assistant works with via MQTT and utilize the Home Assistant MQTT discovery protocol vs. making individual plugins for individual manufacturers or devices, and trying to be as "native" to each as possible. My current thoughts are (number of plugin slots notwithstanding) that plugins that support as close to out-of-the-box, native devices as possible (even if they all use MQTT) AND map them to familiar Insteon/ZWave/IoX interfaces that we've come to know and understand serves the most people. And individual plugins developed by a group of developers is probably the best way to achieve this. But more options are always good, because not everybody has the same goals, level of expertise, or, frankly, time to put into it that some of us do. 😁
-
ratgdo PG3 Plugin Released
I have published a new version of the ratgdo plugin (v3.0.2). This version fixes the lockout status so that it works correctly and changes the door state from the built-in Barrier State UOM to an index UOM with specific defined door states to make programming easier through the IoX programming UI. You may need to stop and restart your Admin Console to pickup the profile changes for the door state to display correctly.
-
Eisy programs will turn some insteon switches on but not off
Here is my anecdotal Insteon experience from the last 12 years: If I have individual commands in a program, I can just enter them sequentially in the Then or Else branch and it seems to work. If I have multiple scenes, however, I will generally put a wait between them of 2 or 3 seconds. I think this is because the sequence that Insteon uses for scenes (send scene command broadcast, then follow up individually with each device) takes multiple zero-crossing cycles to perform. Also, for my Holiday Lights programs and my daily/nightly lighting programs, I execute an On on the scene, wait a minute, then execute the On on the scene again. This frequently cleans up stragglers that may be multiple hops down the communication path that never receive the initial signal because of the noise that is generated from turning on all these LED power converters at one time.