rfxcom2mqtt / hassio-addons

Apache License 2.0
0 stars 0 forks source link

Unable to see my devices #5

Open tfarray opened 1 month ago

tfarray commented 1 month ago

I think you are French, so am I. But I'll keep it in english for the sake of everyone's understanding. I am migrating from domoticz to Rfxcom2mqtt, and I am using the Home Assistant Add-on

I think I managed to configure everything correctly, knowing that there is not much to configure besides the MQTT server. This is perfect.

When I open my MQTT explorer, or when I look at the logs, I can see that a single device is getting added and updated. It's not even a device I own, it must be from someone in the neighborhood.

The device is getting updated very frequently, which make me think everything is working perfectly.

But I don't see any of my personal devices. I have tried many things, I have read the documentation ... But I can't find anything.

Here is what I see in MQTT explorer :

rfxcom2mqtt > bridge > info
{
  "coordinator": {
    "receiverTypeCode": 83,
    "receiverType": "433.92MHz transceiver",
    "hardwareVersion": "3.0",
    "firmwareVersion": 1038,
    "firmwareType": "ProXL 1",
    "enabledProtocols": [
      "BLYSS",
      "RUBICSON",
      "FINEOFFSET",
      "LIGHTING4",
      "RSL",
      "BYRONSX",
      "IMAGINTRONIX",
      "MERTIK",
      "LIGHTWAVERF",
      "HIDEKI",
      "LACROSSE",
      "LEGRAND",
      "BLINDST0",
      "BLINDST1",
      "X10",
      "ARC",
      "AC",
      "HOMEEASY",
      "MEIANTECH",
      "OREGON",
      "ATI",
      "VISONIC",
      "KEELOQ",
      "HOMECONFORT"
    ],
    "transmitterPower": 10,
    "noiseLevel": 107
  },
  "version": "1.1.1",
  "logLevel": "info"
}

And in my devices :

{
  "subtype": 10,
  "id": "0xA301",
  "seqnbr": 34,
  "temperature": 12.6,
  "humidity": 72,
  "humidityStatus": 3,
  "batteryLevel": 9,
  "rssi": 6,
  "type": "temperaturehumidity1",
  "deviceName": [
    "Rubicson",
    "IW008T",
    "TX95",
    "Xiron-EN6",
    "WH5"
  ],
  "group": false,
  "subTypeValue": ""
}

And here is what I had in domoticz :

ID        Name          Type        SubType    
0x15553C $SCS 1/OFF      Lighting 4  PT2262
0x155533 $SCS 1/ON       Lighting 4  PT2262
0x155D03 $SCS 4/ON       Lighting 4  PT2262
0x84C271 [Ext] Sonette   Lighting 4  PT2262
0x15750C $SCS 5/OFF      Lighting 4  PT2262
0x157503 $SCS 5/ON       Lighting 4  PT2262
0x080001 Volets          RFY         RFY     
0x155D0C $SCS 4/OFF      Lighting 4  PT2262
0x15570C $SCS 3/OFF      Lighting 4  PT2262
0x1555C3 $SCS 2/ON       Lighting 4  PT2262
0x1555CC $SCS 2/OFF      Lighting 4  PT2262
0x155703 $SCS 3/ON       Lighting 4  PT2262  

I also noticed that in the RfxCom "information" tab, the protocol RFY was not listed.

Can you help me understand how I can add my devices to the Home Assistant Add-on

tfarray commented 1 month ago

All right ... I went back to flashing my device to the latest version. After flashing on my PC, I realized I still wasn't receiving my remote command, but only the old device from above. I launched the RFX com windows configuration tool and changed the frequency to my region's frequency, and all of a sudden, I was able to see my remote commands.

All of the above is almost resolved. I still need to RTFM to get my blinds synchronized to my RFX com. I am unsure if the actual module will handle Somfy devices.

tfarray commented 1 month ago

I do see commands from my remote, but I don't know how to integrate them in home assistant :

[2024-10-02 03:51:10][GATEWAY] INFO: receive from rfxcom : {"subtype":0,"seqnbr":60,"data":"0x155D03","commandNumber":0,"command":"Data","pulseWidth":175,"rssi":6,"type":"lighting4","deviceName":["PT2262"],"group":false,"subTypeValue":"PT2262"}
[2024-10-02 03:51:10][GATEWAY] INFO: publish to discovery : undefined
2024-10-02 15:51:10.565 [rfxcom] on /dev/serial/by-id/usb-RFXCOM_RFXtrx433XL_DO3RW1KO-if00-port0 - Packet type 13 handler threw exception TypeError: Cannot read properties of undefined (reading 'replace')
tfarray commented 1 month ago

I guess I will stop using the module. I do not understand how to integrate custom PT2262 devices. I have looked in many places, but couldn't find any documentation clearly explaining me how to convert an incoming message to a device.

I will have a try with the native rfx module