bpennypacker / WeatherFlow-Indigo-Plugin

Indigo Plugin for obtaining weather from WeatherFlow
GNU General Public License v2.0
3 stars 2 forks source link

Misspelling error #26

Closed jrickmd closed 4 years ago

jrickmd commented 4 years ago

0.2.3 gives me an error

device "WeatherFlow" state key last_strike_formatted not defined (ignoring update request)

in the custom device states it is misspelled last_srike_formatted

Rick

bpennypacker commented 4 years ago

Rick,

I actually fixed that typo in v0.2.1 of the plug-in. Unfortunately existing devices don't update themselves automatically when the XML that defines an existing state (in Devices.xml) changes. The easiest way to deal with this, unfortunately, is to delete the device in question and then re-add it.

In the meantime, I did just come across the following comment in one of the Indigo forums. I'll try to dig into this and see if I can figure out how to do it so that the plug-in handles this properly in the future.

Old devices won't get updated to changes in the Devices.xml unless you do a specific API call. Which I can't remember off the top of my head.

jrickmd commented 4 years ago

Wondered when I saw that in the release notes…

I did go into that device. Clicked Device Settings. Reselected the item from the Tempest drop down, clicked Save and got

SQL Logger adding column "last_strike_formatted" to table device_history_367014068 ("WeatherFlow")

In the Log.

Success!

On Jul 26, 2020, at 12:18 PM, Bruce Pennypacker notifications@github.com wrote:

Rick,

I actually fixed that typo in v0.2.1 of the plug-in. Unfortunately existing devices don't update themselves automatically when the XML that defines an existing state (in Devices.xml) changes. The easiest way to deal with this, unfortunately, is to delete the device in question and then re-add it.

In the meantime, I did just come across the following comment in one of the Indigo forums. I'll try to dig into this and see if I can figure out how to do it so that the plug-in handles this properly in the future.

Old devices won't get updated to changes in the Devices.xml unless you do a specific API call. Which I can't remember off the top of my head.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/bpennypacker/WeatherFlow-Indigo-Plugin/issues/26#issuecomment-664016022, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOR43KMAYNLGHKDAZLP6IELR5RQM3ANCNFSM4PHU4JUA.

bpennypacker commented 4 years ago

Awesome!