|
Post by Jason on Feb 1, 2021 7:38:18 GMT -8
The following line is generating an error for me:
state.mqtt_client.publish("SkyWeather2", state.currentStateJSON) I replaced it with the following line:
state.mqtt_client.publish("SkyWeather2", state.StateJSON) Thanks,
Jason
|
|
|
Post by SDL on Feb 2, 2021 15:54:38 GMT -8
What error is it generating? Alos, what file is this in? We will take a look at it. History says, Jason, you are usually right!
BP
|
|
|
Post by Jason on Feb 2, 2021 16:16:11 GMT -8
Good at Python but apparently not so good at ordering o-rings (see attachment) The error message, generated by publishMQTT.py, is as follows: AttributeError: module 'state' has no attribute 'currentStateJSON' Jason Attachments:IMG_0746.heic (1.73 MB)
|
|
|
Post by SDL on Feb 2, 2021 16:23:10 GMT -8
Thank you!
Fixed in V021.
BP
|
|