ratgdo with ESPHome

dliccardo
Posts: 64
Joined: Mon Jun 09, 2014 9:38 pm

ratgdo with ESPHome

Post by dliccardo »

Hi All,

Just installed my ratgdo-disco and tested it via its web interface on my network using its ESPHome firmware. All is working! I will set my MyQ hub on fire and then send it back to Chamberlain!

I'm having a hard time understanding what I need to do next. I believe the ESPHome firmware is what everyone is referring to as the MQTT firmware?

And so then, I think I need three plugins: MQTT Broker, MQTT Connector, and ratgdo GDO Controller. I dont know anything about MQTT, but I gather this is some sort of client-server model. So then I need to do a bunch of configuration of these three plugins.

Alternatively, I gather that I could also use an ESPHome plugin instead? (without any additional hardware I believe).

Finally, ratgdo has an alternative firmware for direct Apple HomeKit integration. So I could use that, integrate it with my Apple home and then interface to Indigo via my HomeKitLing Siri integration I believe?


I could really use some advise on the pros/cons of these three approaches and/or clarifying my understanding of what I need to do next. Or point me to any tutorials I may have missed in my reading up on all this!

Thank you all!
Darren
User avatar
GlennNZ
Posts: 1872
Joined: Sun Dec 07, 2014 3:33 pm
Location: Central Coast, Australia

Re: New plugin - ratgdo

Post by GlennNZ »

Hi,

From my standpoint and experience, 1/ not having a ratgdo, or using the ratgdo plugin - I would suggest you install the ESPHome plugin, enter the IP address of the ESP Home device (ratgdo) and see if it works and all devices are generated. If it supports and enables the level of control you need, provided the IP address is static - it should just continue without needing anything else. It it doesn't work - disable it and nothing lost. It should need no other hardware, or software installed - simply the IP address of the ESPHome device. It automatically creates all supported devices from the ESPHome device in Indigo

Backwards from HomeKit to Indigo can be done with mirrored devices., and automation on Home App (eg. if device one turns on/off, turn on/off device 2 - with device 2 being a HKLS device). But is arguably more difficult.

Alternatively there is FlyingDiver ratgdo plugin - which you have posted here in....

Glenn
User avatar
FlyingDiver
Posts: 7830
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: New plugin - ratgdo

Post by FlyingDiver »

I would also just use the ESPHome plugin if you can make it work for you. The MQTT based ratgdo plugin is much more complicated to set up. I really only wrote because I could. :)

I have not decided if I'm going with ratgdo or the Konnected BlaQ unit (https://konnected.io/products/smart-gar ... lternative). The Konnected unit is basically a commercial version of the ratgdo (which is all open source). It also used the ESPHome firmware.
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
dliccardo
Posts: 64
Joined: Mon Jun 09, 2014 9:38 pm

Re: New plugin - ratgdo

Post by dliccardo »

Thanks for the advice. I decided to try ESPHome plugin as a first step. It does appear to connect to my ratgdo and create a variety of sensor child devices and a toggle door actuator. But it does not create the close, open, and stop commands that I was hoping for. When I turn on toggle door nothing happens and with the ratgdo web log running, I cannot see it come through. I can see the obstruction sensor change states in indigo when I put my foot in front of the sensor, so thats a start. The indigo logs also show this issue:

Code: Select all

   ESPHome Indigo Plugin           Creating child devices for RATGDO
   ESPHome Indigo Plugin           RATGDO-Motion seems to already exists based on unique_id, hence not recreated.
   ESPHome Indigo Plugin           RATGDO-Obstruction seems to already exists based on unique_id, hence not recreated.
   ESPHome Indigo Plugin           RATGDO-Button seems to already exists based on unique_id, hence not recreated.
   ESPHome Indigo Plugin           RATGDO-Dry contact open seems to already exists based on unique_id, hence not recreated.
   ESPHome Indigo Plugin           RATGDO-Dry contact close seems to already exists based on unique_id, hence not recreated.
   ESPHome Indigo Plugin           RATGDO-Dry contact light seems to already exists based on unique_id, hence not recreated.
   ESPHome Indigo Plugin           RATGDO-Vehicle detected seems to already exists based on unique_id, hence not recreated.
   ESPHome Indigo Plugin           RATGDO-Vehicle arriving seems to already exists based on unique_id, hence not recreated.
   ESPHome Indigo Plugin           RATGDO-Vehicle leaving seems to already exists based on unique_id, hence not recreated.
   ESPHome Indigo Plugin           RATGDO-WiFi Signal seems to already exists based on unique_id, hence not recreated.
   ESPHome Indigo Plugin           RATGDO-Vehicle distance actual filtered seems to already exists based on unique_id, hence not recreated.
   ESPHome Indigo Plugin           RATGDO-Voltage seems to already exists based on unique_id, hence not recreated.
   ESPHome Indigo Plugin           RATGDO-LED seems to already exists based on unique_id, hence not recreated.
   ESPHome Indigo Plugin           RATGDO-LASER seems to already exists based on unique_id, hence not recreated.
   ESPHome Indigo Plugin           RATGDO-Restart seems to already exists based on unique_id, hence not recreated.
   ESPHome Indigo Plugin           RATGDO-Safe mode boot seems to already exists based on unique_id, hence not recreated.
   ESPHome Indigo Plugin           RATGDO-Query status seems to already exists based on unique_id, hence not recreated.
   ESPHome Indigo Plugin           RATGDO-Sync seems to already exists based on unique_id, hence not recreated.
   ESPHome Indigo Plugin           RATGDO-Toggle door seems to already exists based on unique_id, hence not recreated.
   ESPHome Indigo Plugin           RATGDO-Firmware Version seems to already exists based on unique_id, hence not recreated.
   ESPHome Indigo Plugin           Connected to, and subscribing for State Changes for RATGDO
   ESPHome Indigo Plugin           Connected to, and subscribing for State Changes for RATGDO
   ESPHome Indigo Plugin Error     (plugin.py: Function: change_callback  line: 151):    Exception :  Message : Exception in subscription callback
   ESPHome Indigo Plugin Error     Traceback:
  File "plugin.py", line 124, in change_callback
    state = state.state
            ^^^^^^^^^^^

   ESPHome Indigo Plugin Error     Error in plugin execution:

Traceback (most recent call last):
  File "plugin.py", line 124, in change_callback
    state = state.state
            ^^^^^^^^^^^
AttributeError: 'CoverState' object has no attribute 'state'

   ESPHome Indigo Plugin Error     
Exc_info: (<class 'AttributeError'>, AttributeError("'CoverState' object has no attribute 'state'"), <traceback object at 0x10a1b0a80>) 
Exc_Text: Traceback (most recent call last):
  File "plugin.py", line 124, in change_callback
    state = state.state
            ^^^^^^^^^^^
AttributeError: 'CoverState' object has no attribute 'state' 
Stack_info: None
User avatar
GlennNZ
Posts: 1872
Joined: Sun Dec 07, 2014 3:33 pm
Location: Central Coast, Australia

Re: New plugin - ratgdo

Post by GlennNZ »

dliccardo wrote: Sun Mar 09, 2025 2:16 pm Thanks for the advice. I decided to try ESPHome plugin as a first step. It does appear to connect to my ratgdo and create a variety of sensor child devices and a toggle door actuator. But it does not create the close, open, and stop commands that I was hoping for. When I turn on toggle door nothing happens and with the ratgdo web log running, I cannot see it come through. I can see the obstruction sensor change states in indigo when I put my foot in front of the sensor, so thats a start.
Okay.
Part of that is good and part bad...

What version of the plugin are you using - that code line does not exist in version 0.1.7 ?

There is version 0.1.7 = which was a version for ratgdo support.
Download here:
https://github.com/Ghawken/ESPHome_Indi ... n/releases

It is likely we never completed testing it (hard as I do not have a ratgdo device and couldn't flash one) User in question perhaps disappeared

It has these changes.

Code: Select all

0.1.7
Extend Ratgdo support to Cover type (add Cover type as a Dimmer Indigo type)
Allows Door position to be set and hopefully read.
Open/Close here sets position to 0 or 100%
Add Action group for STOP command
Fix for nan start error if sensor value not set

0.1.6
Add support for Ratgdo Devices directly via IP address
Add NumberInfo info boxes
Support Buttons (needed for Ratgdo), Button is a mometary switch eg. On temporarily only
So:
Would try again with this version and report back - I can update as needed, and/or release if all is good.

Thanks

Glenn
dliccardo
Posts: 64
Joined: Mon Jun 09, 2014 9:38 pm

Re: New plugin - ratgdo

Post by dliccardo »

ah, great Glenn, I downloaded 0.1.7 and that prior error is now gone and I see these additional child devices, which looks like the complete set to me:

Code: Select all

   ESPHome Indigo Plugin           Created New Indigo Sensor Device for ESPHome device: Rolling code counter
   ESPHome Indigo Plugin           Created New Indigo Sensor Device for ESPHome device: Opening duration
   ESPHome Indigo Plugin           Created New Indigo Sensor Device for ESPHome device: Closing duration
   ESPHome Indigo Plugin           Created New Indigo Sensor Device for ESPHome device: Client ID
   ESPHome Indigo Plugin           Created New Indigo Sensor Device for ESPHome device: Vehicle distance target
   ESPHome Indigo Plugin           Created New Indigo Sensor Device for ESPHome device: Closing Delay
The door command on/off is now working, but setting brightness does not stop the door at the correct position. I think there is a scaling factor issue with the brightness state. My guess is that ratgdo is sending in the range [0,1] because once completely open brightness is displayed as 1.

Code: Select all

 ESPHome Indigo Plugin           sent "RATGDO-Door" set Position to 100
   Error                           LowLevelBadParameterError -- device value type for state key brightnessLevel must be integer
   Error                           LowLevelBadParameterError -- device value type for state key brightnessLevel must be integer
   Error                           LowLevelBadParameterError -- device value type for state key brightnessLevel must be integer
   Error                           LowLevelBadParameterError -- device value type for state key brightnessLevel must be integer
   Error                           LowLevelBadParameterError -- device value type for state key brightnessLevel must be integer
   Error                           LowLevelBadParameterError -- device value type for state key brightnessLevel must be integer
   Error                           LowLevelBadParameterError -- device value type for state key brightnessLevel must be integer
   Error                           LowLevelBadParameterError -- device value type for state key brightnessLevel must be integer
   Error                           LowLevelBadParameterError -- device value type for state key brightnessLevel must be integer
   Error                           LowLevelBadParameterError -- device value type for state key brightnessLevel must be integer
   Error                           LowLevelBadParameterError -- device value type for state key brightnessLevel must be integer
   Error                           LowLevelBadParameterError -- device value type for state key brightnessLevel must be integer
   Error                           LowLevelBadParameterError -- device value type for state key brightnessLevel must be integer
   Error                           LowLevelBadParameterError -- device value type for state key brightnessLevel must be integer
   Error                           LowLevelBadParameterError -- device value type for state key brightnessLevel must be integer
   Error                           LowLevelBadParameterError -- device value type for state key brightnessLevel must be integer
   Error                           LowLevelBadParameterError -- device value type for state key brightnessLevel must be integer
   Error                           LowLevelBadParameterError -- device value type for state key brightnessLevel must be integer
   Error                           LowLevelBadParameterError -- device value type for state key brightnessLevel must be integer
   Error                           LowLevelBadParameterError -- device value type for state key brightnessLevel must be integer
   Error                           LowLevelBadParameterError -- device value type for state key brightnessLevel must be integer
   Error                           LowLevelBadParameterError -- device value type for state key brightnessLevel must be integer
   Error                           LowLevelBadParameterError -- device value type for state key brightnessLevel must be integer
   Error                           LowLevelBadParameterError -- device value type for state key brightnessLevel must be integer
   Error                           LowLevelBadParameterError -- device value type for state key brightnessLevel must be integer
   Error                           LowLevelBadParameterError -- device value type for state key brightnessLevel must be integer
   Error                           LowLevelBadParameterError -- device value type for state key brightnessLevel must be integer
   ESPHome Indigo Plugin           sent "RATGDO-Door" status request

One additional thing I'm noticing is that the Obstruction child sensor device (which is the light eye at the garage door) updates state in less than 1 sec, which is great, but the vehicle distance sensor device seems to update only about once per minute regardless of if its value is changing or not. In the ratgdo log this value changes multiple times per second. Maybe this is just the ratgdo firmware not publishing very frequently?
User avatar
GlennNZ
Posts: 1872
Joined: Sun Dec 07, 2014 3:33 pm
Location: Central Coast, Australia

Re: New plugin - ratgdo

Post by GlennNZ »

dliccardo wrote: Sun Mar 09, 2025 8:37 pm ah, great Glenn, I downloaded 0.1.7 and that prior error is now gone and I see these additional child devices, which looks like the complete set to me:

Code: Select all

   ESPHome Indigo Plugin           Created New Indigo Sensor Device for ESPHome device: Rolling code counter
   ESPHome Indigo Plugin           Created New Indigo Sensor Device for ESPHome device: Opening duration
   ESPHome Indigo Plugin           Created New Indigo Sensor Device for ESPHome device: Closing duration
   ESPHome Indigo Plugin           Created New Indigo Sensor Device for ESPHome device: Client ID
   ESPHome Indigo Plugin           Created New Indigo Sensor Device for ESPHome device: Vehicle distance target
   ESPHome Indigo Plugin           Created New Indigo Sensor Device for ESPHome device: Closing Delay
The door command on/off is now working, but setting brightness does not stop the door at the correct position. I think there is a scaling factor issue with the brightness state. My guess is that ratgdo is sending in the range [0,1] because once completely open brightness is displayed as 1.

Code: Select all

 ESPHome Indigo Plugin           sent "RATGDO-Door" set Position to 100
   Error                           LowLevelBadParameterError -- device value type for state key brightnessLevel must be integer
One additional thing I'm noticing is that the Obstruction child sensor device (which is the light eye at the garage door) updates state in less than 1 sec, which is great, but the vehicle distance sensor device seems to update only about once per minute regardless of if its value is changing or not. In the ratgdo log this value changes multiple times per second. Maybe this is just the ratgdo firmware not publishing very frequently?
Okay. Good - all of that looks very fixable.

I can have look at those. Good you found the github - as will be updating there

Brightness - can trial the 0 - 1 and see if helps.
The update though should be as regularly as the esp device itself (well at least the state).

Might need a big log from you with all options, including ESPHome library and a few of these errors to track them all done.
(would turn on all debug options, run through a few checks issues, zip it and PM me?)

Thanks
User avatar
GlennNZ
Posts: 1872
Joined: Sun Dec 07, 2014 3:33 pm
Location: Central Coast, Australia

New plugin - ratgdo

Post by GlennNZ »

Try Commit 0.1.8
There now - taking opportunity to upgrade library to latest (which had a few breaking changes - believe have fixed)

Fixes some of the brightness based data.
The library update may help update frequency.

Go here:
https://github.com/Ghawken/ESPHome_IndigoPlugin
Press Geen <> Code Button - Download Zip, double click downloaded file to update plugin.

Easier than release particularly if multiple changes needed.

Unfortunately thought without logging as above post, or a device - this may need to be trial and error for a bit…

G
User avatar
FlyingDiver
Posts: 7830
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: ratgdo with ESPHome

Post by FlyingDiver »

I moved this topic to the appropriate forum.
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
dliccardo
Posts: 64
Joined: Mon Jun 09, 2014 9:38 pm

Re: ratgdo with ESPHome

Post by dliccardo »

With commit 0.1.8 and all logging turned on, I still see the same issues with low update frequency and door brightness state. Here is a log of just observing. It seems like ratgdo is just not publishing very fast I guess?

Code: Select all

Mar 10, 2025 at 21:12:07
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:144): Received: SensorState(key=1745288866, state=1267.0, missing_state=False)
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:145): Main Linked Core device = 904747434
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:154): New Received: 1267.000000
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:161): Matching device RATGDO-Vehicle distance actual filtered to received state 1267.000000 found.  Updating
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:144): Received: SensorState(key=2195749573, state=4.850001335144043, missing_state=False)
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:145): Main Linked Core device = 904747434
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:154): New Received: 4.850001
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:161): Matching device RATGDO-Voltage to received state 4.850001 found.  Updating
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:144): Received: SensorState(key=799351157, state=-75.0, missing_state=False)
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:145): Main Linked Core device = 904747434
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:154): New Received: -75.000000
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:161): Matching device RATGDO-WiFi Signal to received state -75.000000 found.  Updating

Mar 10, 2025 at 21:13:10
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:144): Received: SensorState(key=1745288866, state=1233.0, missing_state=False)
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:145): Main Linked Core device = 904747434
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:154): New Received: 1233.000000
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:161): Matching device RATGDO-Vehicle distance actual filtered to received state 1233.000000 found.  Updating
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:144): Received: SensorState(key=2195749573, state=4.916038990020752, missing_state=False)
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:145): Main Linked Core device = 904747434
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:154): New Received: 4.916039
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:161): Matching device RATGDO-Voltage to received state 4.916039 found.  Updating

Mar 10, 2025 at 21:14:13
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:144): Received: SensorState(key=1745288866, state=1260.0, missing_state=False)
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:145): Main Linked Core device = 904747434
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:154): New Received: 1260.000000
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:161): Matching device RATGDO-Vehicle distance actual filtered to received state 1260.000000 found.  Updating
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:144): Received: SensorState(key=2195749573, state=4.8856730461120605, missing_state=False)
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:145): Main Linked Core device = 904747434
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:154): New Received: 4.885673
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:161): Matching device RATGDO-Voltage to received state 4.885673 found.  Updating
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:144): Received: SensorState(key=799351157, state=-77.0, missing_state=False)
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:145): Main Linked Core device = 904747434
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:154): New Received: -77.000000
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:161): Matching device RATGDO-WiFi Signal to received state -77.000000 found.  Updating

Mar 10, 2025 at 21:15:16
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:144): Received: SensorState(key=1745288866, state=1229.0, missing_state=False)
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:145): Main Linked Core device = 904747434
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:154): New Received: 1229.000000
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:161): Matching device RATGDO-Vehicle distance actual filtered to received state 1229.000000 found.  Updating
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:144): Received: SensorState(key=2195749573, state=4.934213161468506, missing_state=False)
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:145): Main Linked Core device = 904747434
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:154): New Received: 4.934213
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:161): Matching device RATGDO-Voltage to received state 4.934213 found.  Updating

Mar 10, 2025 at 21:16:20
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:144): Received: SensorState(key=1745288866, state=1319.0, missing_state=False)
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:145): Main Linked Core device = 904747434
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:154): New Received: 1319.000000
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:161): Matching device RATGDO-Vehicle distance actual filtered to received state 1319.000000 found.  Updating
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:144): Received: SensorState(key=2195749573, state=4.9682159423828125, missing_state=False)
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:145): Main Linked Core device = 904747434
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:154): New Received: 4.968216
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:161): Matching device RATGDO-Voltage to received state 4.968216 found.  Updating
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:144): Received: SensorState(key=799351157, state=-76.0, missing_state=False)
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:145): Main Linked Core device = 904747434
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:154): New Received: -76.000000
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:161): Matching device RATGDO-WiFi Signal to received state -76.000000 found.  Updating
And here is a log after turning the door on. I think the scaling error remains. Ratgdo is sending in the range [0-1]:

Code: Select all

Mar 10, 2025 at 21:21:36
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:144): Received: SensorState(key=1745288866, state=1257.0, missing_state=False)
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:145): Main Linked Core device = 904747434
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:154): New Received: 1257.000000
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:161): Matching device RATGDO-Vehicle distance actual filtered to received state 1257.000000 found.  Updating
   ESPHome Indigo Plugin Error     Error in plugin execution ExecuteAction:

  File "plugin.py", line 933, in actionControlDevice
  File "plugin.py", line 130, in cover_command
type: 'ESPHome4Indigo' object has no attribute 'logger'

   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:144): Received: LightState(key=1935470627, state=True, brightness=1.0, color_mode=1, color_brightness=1.0, red=1.0, green=1.0, blue=1.0, white=1.0, color_temperature=0.0, cold_white=1.0, warm_white=1.0, effect='')
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:145): Main Linked Core device = 904747434
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:154): New Received: True
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:144): Received: CoverState(key=1877847629, legacy_state=<LegacyCoverState.CLOSED: 1>, position=0.0005714286, tilt=0.0, current_operation=<CoverOperation.IS_OPENING: 1>)
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:145): Main Linked Core device = 904747434
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:154): New Received: 1
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:181): Matching device RATGDO-Door to received position info 0.0005714286 found.  Updating
   Error                           LowLevelBadParameterError -- device value type for state key brightnessLevel must be integer
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:144): Received: CoverState(key=1877847629, legacy_state=<LegacyCoverState.CLOSED: 1>, position=0.03671429, tilt=0.0, current_operation=<CoverOperation.IS_OPENING: 1>)
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:145): Main Linked Core device = 904747434
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:154): New Received: 1
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:181): Matching device RATGDO-Door to received position info 0.03671429 found.  Updating
   Error                           LowLevelBadParameterError -- device value type for state key brightnessLevel must be integer
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:144): Received: CoverState(key=1877847629, legacy_state=<LegacyCoverState.CLOSED: 1>, position=0.07342857, tilt=0.0, current_operation=<CoverOperation.IS_OPENING: 1>)
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:145): Main Linked Core device = 904747434
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:154): New Received: 1
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:181): Matching device RATGDO-Door to received position info 0.07342857 found.  Updating
   Error                           LowLevelBadParameterError -- device value type for state key brightnessLevel must be integer
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:144): Received: CoverState(key=1877847629, legacy_state=<LegacyCoverState.CLOSED: 1>, position=0.1093571, tilt=0.0, current_operation=<CoverOperation.IS_OPENING: 1>)
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:145): Main Linked Core device = 904747434
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:154): New Received: 1
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:181): Matching device RATGDO-Door to received position info 0.1093571 found.  Updating
   Error                           LowLevelBadParameterError -- device value type for state key brightnessLevel must be integer
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:144): Received: CoverState(key=1877847629, legacy_state=<LegacyCoverState.CLOSED: 1>, position=0.1454286, tilt=0.0, current_operation=<CoverOperation.IS_OPENING: 1>)
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:145): Main Linked Core device = 904747434
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:154): New Received: 1
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:181): Matching device RATGDO-Door to received position info 0.1454286 found.  Updating
   Error                           LowLevelBadParameterError -- device value type for state key brightnessLevel must be integer
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:144): Received: CoverState(key=1877847629, legacy_state=<LegacyCoverState.CLOSED: 1>, position=0.1821429, tilt=0.0, current_operation=<CoverOperation.IS_OPENING: 1>)
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:145): Main Linked Core device = 904747434
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:154): New Received: 1
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:181): Matching device RATGDO-Door to received position info 0.1821429 found.  Updating
   Error                           LowLevelBadParameterError -- device value type for state key brightnessLevel must be integer
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:144): Received: CoverState(key=1877847629, legacy_state=<LegacyCoverState.CLOSED: 1>, position=0.218, tilt=0.0, current_operation=<CoverOperation.IS_OPENING: 1>)
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:145): Main Linked Core device = 904747434
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:154): New Received: 1
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:181): Matching device RATGDO-Door to received position info 0.218 found.  Updating
   Error                           LowLevelBadParameterError -- device value type for state key brightnessLevel must be integer
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:144): Received: CoverState(key=1877847629, legacy_state=<LegacyCoverState.CLOSED: 1>, position=0.2539286, tilt=0.0, current_operation=<CoverOperation.IS_OPENING: 1>)
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:145): Main Linked Core device = 904747434
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:154): New Received: 1
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:181): Matching device RATGDO-Door to received position info 0.2539286 found.  Updating
   Error                           LowLevelBadParameterError -- device value type for state key brightnessLevel must be integer
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:144): Received: CoverState(key=1877847629, legacy_state=<LegacyCoverState.CLOSED: 1>, position=0.2907143, tilt=0.0, current_operation=<CoverOperation.IS_OPENING: 1>)
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:145): Main Linked Core device = 904747434
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:154): New Received: 1
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:181): Matching device RATGDO-Door to received position info 0.2907143 found.  Updating
   Error                           LowLevelBadParameterError -- device value type for state key brightnessLevel must be integer
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:144): Received: CoverState(key=1877847629, legacy_state=<LegacyCoverState.CLOSED: 1>, position=0.3267857, tilt=0.0, current_operation=<CoverOperation.IS_OPENING: 1>)
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:145): Main Linked Core device = 904747434
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:154): New Received: 1
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:181): Matching device RATGDO-Door to received position info 0.3267857 found.  Updating
   Error                           LowLevelBadParameterError -- device value type for state key brightnessLevel must be integer
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:144): Received: CoverState(key=1877847629, legacy_state=<LegacyCoverState.CLOSED: 1>, position=0.3639286, tilt=0.0, current_operation=<CoverOperation.IS_OPENING: 1>)
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:145): Main Linked Core device = 904747434
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:154): New Received: 1
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:181): Matching device RATGDO-Door to received position info 0.3639286 found.  Updating
   Error                           LowLevelBadParameterError -- device value type for state key brightnessLevel must be integer
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:144): Received: CoverState(key=1877847629, legacy_state=<LegacyCoverState.CLOSED: 1>, position=0.4002143, tilt=0.0, current_operation=<CoverOperation.IS_OPENING: 1>)
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:145): Main Linked Core device = 904747434
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:154): New Received: 1
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:181): Matching device RATGDO-Door to received position info 0.4002143 found.  Updating
   Error                           LowLevelBadParameterError -- device value type for state key brightnessLevel must be integer
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:144): Received: CoverState(key=1877847629, legacy_state=<LegacyCoverState.CLOSED: 1>, position=0.4364286, tilt=0.0, current_operation=<CoverOperation.IS_OPENING: 1>)
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:145): Main Linked Core device = 904747434
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:154): New Received: 1
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:181): Matching device RATGDO-Door to received position info 0.4364286 found.  Updating
   Error                           LowLevelBadParameterError -- device value type for state key brightnessLevel must be integer
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:144): Received: CoverState(key=1877847629, legacy_state=<LegacyCoverState.CLOSED: 1>, position=0.4722857, tilt=0.0, current_operation=<CoverOperation.IS_OPENING: 1>)
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:145): Main Linked Core device = 904747434
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:154): New Received: 1
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:181): Matching device RATGDO-Door to received position info 0.4722857 found.  Updating
   Error                           LowLevelBadParameterError -- device value type for state key brightnessLevel must be integer
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:144): Received: CoverState(key=1877847629, legacy_state=<LegacyCoverState.CLOSED: 1>, position=0.5089286, tilt=0.0, current_operation=<CoverOperation.IS_OPENING: 1>)
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:145): Main Linked Core device = 904747434
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:154): New Received: 1
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:181): Matching device RATGDO-Door to received position info 0.5089286 found.  Updating
   Error                           LowLevelBadParameterError -- device value type for state key brightnessLevel must be integer
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:144): Received: CoverState(key=1877847629, legacy_state=<LegacyCoverState.CLOSED: 1>, position=0.5447857, tilt=0.0, current_operation=<CoverOperation.IS_OPENING: 1>)
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:145): Main Linked Core device = 904747434
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:154): New Received: 1
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:181): Matching device RATGDO-Door to received position info 0.5447857 found.  Updating
   Error                           LowLevelBadParameterError -- device value type for state key brightnessLevel must be integer
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:144): Received: CoverState(key=1877847629, legacy_state=<LegacyCoverState.CLOSED: 1>, position=0.5807143, tilt=0.0, current_operation=<CoverOperation.IS_OPENING: 1>)
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:145): Main Linked Core device = 904747434
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:154): New Received: 1
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:181): Matching device RATGDO-Door to received position info 0.5807143 found.  Updating
   Error                           LowLevelBadParameterError -- device value type for state key brightnessLevel must be integer
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:144): Received: CoverState(key=1877847629, legacy_state=<LegacyCoverState.CLOSED: 1>, position=0.6169286, tilt=0.0, current_operation=<CoverOperation.IS_OPENING: 1>)
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:145): Main Linked Core device = 904747434
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:154): New Received: 1
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:181): Matching device RATGDO-Door to received position info 0.6169286 found.  Updating
   Error                           LowLevelBadParameterError -- device value type for state key brightnessLevel must be integer
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:144): Received: CoverState(key=1877847629, legacy_state=<LegacyCoverState.CLOSED: 1>, position=0.6527143, tilt=0.0, current_operation=<CoverOperation.IS_OPENING: 1>)
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:145): Main Linked Core device = 904747434
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:154): New Received: 1
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:181): Matching device RATGDO-Door to received position info 0.6527143 found.  Updating
   Error                           LowLevelBadParameterError -- device value type for state key brightnessLevel must be integer
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:144): Received: CoverState(key=1877847629, legacy_state=<LegacyCoverState.CLOSED: 1>, position=0.6885, tilt=0.0, current_operation=<CoverOperation.IS_OPENING: 1>)
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:145): Main Linked Core device = 904747434
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:154): New Received: 1
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:181): Matching device RATGDO-Door to received position info 0.6885 found.  Updating
   Error                           LowLevelBadParameterError -- device value type for state key brightnessLevel must be integer
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:144): Received: CoverState(key=1877847629, legacy_state=<LegacyCoverState.CLOSED: 1>, position=0.7243571, tilt=0.0, current_operation=<CoverOperation.IS_OPENING: 1>)
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:145): Main Linked Core device = 904747434
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:154): New Received: 1
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:181): Matching device RATGDO-Door to received position info 0.7243571 found.  Updating
   Error                           LowLevelBadParameterError -- device value type for state key brightnessLevel must be integer
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:144): Received: CoverState(key=1877847629, legacy_state=<LegacyCoverState.CLOSED: 1>, position=0.7603571, tilt=0.0, current_operation=<CoverOperation.IS_OPENING: 1>)
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:145): Main Linked Core device = 904747434
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:154): New Received: 1
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:181): Matching device RATGDO-Door to received position info 0.7603571 found.  Updating
   Error                           LowLevelBadParameterError -- device value type for state key brightnessLevel must be integer
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:144): Received: CoverState(key=1877847629, legacy_state=<LegacyCoverState.CLOSED: 1>, position=0.7974285, tilt=0.0, current_operation=<CoverOperation.IS_OPENING: 1>)
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:145): Main Linked Core device = 904747434
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:154): New Received: 1
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:181): Matching device RATGDO-Door to received position info 0.7974285 found.  Updating
   Error                           LowLevelBadParameterError -- device value type for state key brightnessLevel must be integer
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:144): Received: CoverState(key=1877847629, legacy_state=<LegacyCoverState.CLOSED: 1>, position=0.8335, tilt=0.0, current_operation=<CoverOperation.IS_OPENING: 1>)
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:145): Main Linked Core device = 904747434
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:154): New Received: 1
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:181): Matching device RATGDO-Door to received position info 0.8335 found.  Updating
   Error                           LowLevelBadParameterError -- device value type for state key brightnessLevel must be integer
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:144): Received: CoverState(key=1877847629, legacy_state=<LegacyCoverState.CLOSED: 1>, position=0.8705714, tilt=0.0, current_operation=<CoverOperation.IS_OPENING: 1>)
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:145): Main Linked Core device = 904747434
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:154): New Received: 1
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:181): Matching device RATGDO-Door to received position info 0.8705714 found.  Updating
   Error                           LowLevelBadParameterError -- device value type for state key brightnessLevel must be integer
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:144): Received: CoverState(key=1877847629, legacy_state=<LegacyCoverState.CLOSED: 1>, position=0.9067143, tilt=0.0, current_operation=<CoverOperation.IS_OPENING: 1>)
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:145): Main Linked Core device = 904747434
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:154): New Received: 1
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:181): Matching device RATGDO-Door to received position info 0.9067143 found.  Updating
   Error                           LowLevelBadParameterError -- device value type for state key brightnessLevel must be integer
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:144): Received: CoverState(key=1877847629, legacy_state=<LegacyCoverState.CLOSED: 1>, position=0.9435, tilt=0.0, current_operation=<CoverOperation.IS_OPENING: 1>)
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:145): Main Linked Core device = 904747434
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:154): New Received: 1
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:181): Matching device RATGDO-Door to received position info 0.9435 found.  Updating
   Error                           LowLevelBadParameterError -- device value type for state key brightnessLevel must be integer
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:144): Received: CoverState(key=1877847629, legacy_state=<LegacyCoverState.OPEN: 0>, position=1.0, tilt=0.0, current_operation=<CoverOperation.IDLE: 0>)
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:145): Main Linked Core device = 904747434
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:154): New Received: 0
   ESPHome Indigo Plugin Debug     (plugin.py:change_callback:181): Matching device RATGDO-Door to received position info 1.0 found.  Updating
User avatar
GlennNZ
Posts: 1872
Joined: Sun Dec 07, 2014 3:33 pm
Location: Central Coast, Australia

ratgdo with ESPHome

Post by GlennNZ »

Hi

Hopefully will have time to look at this shortly

Can see (at least) one bug

But I do need the full file log with everything on (although having the debug logging on here helps a bit) to get to grips with what is going on. Zip and PM would be ideal

Edit:
Although can confirm one bug (which is an old one..)
& yes - the scaling is not happening as this is occurring elsewhere in the code to where I thought it was…
I think I have fixed the scaling so can select a door position, rather than this incoming update…

Leave it with me for a couple of hours…

Thanks


Sent from my iPhone using Tapatalk
User avatar
GlennNZ
Posts: 1872
Joined: Sun Dec 07, 2014 3:33 pm
Location: Central Coast, Australia

Re: ratgdo with ESPHome

Post by GlennNZ »

Try version 0.1.9 there now (Commit is - can review commit messaging - but again use the code button, Download Code as above)

Code: Select all

Fix for Covers being 0 - 1.0 rather than 0 -100.
More fix for above.
Reformat numbers only use 5 decimals if have to
Bug fix for logging in Class
Still seems a exception in your logging - not sure why, this fixes the error so should show why if it still exits..


Sent from my iPad using Tapatalk
User avatar
GlennNZ
Posts: 1872
Joined: Sun Dec 07, 2014 3:33 pm
Location: Central Coast, Australia

ratgdo with ESPHome

Post by GlennNZ »

Okay - not sure whether speaking to myself but try...

0.1.10
Commited now, release and in plugin store.

Fix for async library changes for commands
Further updates for Ratgdo support


I found a ESP32 and flashed Ratgdo security version 2 I think - so have been able to test some aspects.
User avatar
Korey
Posts: 888
Joined: Wed Jun 04, 2008 11:47 am
Location: Henderson, NV
Contact:

Re: ratgdo with ESPHome

Post by Korey »

Thanks for this Glenn,

I'll give it a shot when I get home, Ive been using Joes MQTT and the ratgdo plugin since he published it.
--
Korey
User avatar
GlennNZ
Posts: 1872
Joined: Sun Dec 07, 2014 3:33 pm
Location: Central Coast, Australia

Re: ratgdo with ESPHome

Post by GlennNZ »

Korey wrote:Thanks for this Glenn,

I'll give it a shot when I get home, Ive been using Joes MQTT and the ratgdo plugin since he published it.
Image

(Thats a Thumbs Up Emoji - if doesn’t make it intact posting…)

Let me know - thanks.

Seems to be fine on my testing…. and simply needs the IP address to setup as uses the ESPHOME Api and protobuf communication

Glenn


Sent from my iPad using Tapatalk
Post Reply

Return to “ESPHome4Indigo”