ERROR: Error on JSON expansion: Inappropriate ioctl for device

Einklappen
X
 
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge
  • edipseamm
    Smart Home'r
    • 03.02.2020
    • 38

    ERROR: Error on JSON expansion: Inappropriate ioctl for device

    Since updating to v3.0.0.1 I have been getting this error from data from the unifi plugin from homekit that I run in a docker that passes statuses via mqtt and this is the only plugin that works to be able to send the doorbell is pressed in realtime. The loxberry and iobroker versions don't have this support.



    I seen from an older topic on this issue there was a fix but I'm hoping someone can help me understand where the issue is here.

    What is strange is the status is updated in the MQTT finder but not updated in the incomming data and then not passed to the miniserver

    Thanks in advance




    Code:
    [SIZE=13px][COLOR=#8080ff][FONT=monospace]1:14:48.194 HTTP: Preparing input glow_A8032ADDC684_STATE_han_status (using cache): joined[/FONT][/COLOR][/SIZE]
    [SIZE=13px][COLOR=#8080ff][FONT=monospace]11:14:48.194 HTTP: Preparing input glow_A8032ADDC684_STATE_software (using cache): v1.8.13[/FONT][/COLOR][/SIZE]
    
    [SIZE=13px][COLOR=#000000][FONT=monospace]11:14:53.553 [COLOR=green][B]OK:[/B][/COLOR] MQTT IN: unifi/protect/E063DAEFF627/motion: false[/FONT][/COLOR][/SIZE]
    [SIZE=13px][COLOR=#8080ff][FONT=monospace]11:14:53.554 Expanding json message[/FONT][/COLOR][/SIZE]
    
    [SIZE=13px][COLOR=#000000][FONT=monospace]11:14:53.554 [COLOR=red][B]ERROR:[/B][/COLOR] Error on JSON expansion: Inappropriate ioctl for device[/FONT][/COLOR][/SIZE]
    [SIZE=13px][COLOR=#8080ff][FONT=monospace]11:14:53.554 All data filtered - skipping further processing of this message[/FONT][/COLOR][/SIZE]
    
    [SIZE=13px][COLOR=#000000][FONT=monospace]11:14:53.555 [COLOR=green][B]OK:[/B][/COLOR] MQTT IN: unifi/protect/E063DAEFF627/motion/smart/person: false[/FONT][/COLOR][/SIZE]
    [SIZE=13px][COLOR=#8080ff][FONT=monospace]11:14:53.555 Expanding json message[/FONT][/COLOR][/SIZE]
    
    [SIZE=13px][COLOR=#000000][FONT=monospace]11:14:53.556 [COLOR=red][B]ERROR:[/B][/COLOR] Error on JSON expansion: Inappropriate ioctl for device[/FONT][/COLOR][/SIZE]
    [SIZE=13px][COLOR=#8080ff][FONT=monospace]11:14:53.556 All data filtered - skipping further processing of this message[/FONT][/COLOR][/SIZE]
    
    [SIZE=13px][COLOR=#000000][FONT=monospace]11:14:57.645 [COLOR=green][B]OK:[/B][/COLOR] MQTT IN: glow/A8032ADDC684/SENSOR/electricitymeter: {"electricitymeter":{"timestamp":"2023-03-11T11:14:50Z","energy":{"export":{"cumulative":0.000,"units":"kWh"},"import":{"cumulative":30332.150,"day":10.755,"week":107.280,"month":249.369,"units":"kWh","mpan":"1591023835432","supplier":"Octopus Energy","price":{"unitrate":0.40600,"standingcharge":0.48380}}},"power":{"value":0.489,"units":"kW"}}}[/FONT][/COLOR][/SIZE]
    [SIZE=13px][COLOR=#8080ff][FONT=monospace]11:14:57.646 Expanding json message[/FONT][/COLOR][/SIZE]
    [SIZE=13px][COLOR=#8080ff][FONT=monospace]11:14:57.647 glow/A8032ADDC684/SENSOR/electricitymeter/electricitymeter_energy_import_supplier = Octopus Energy[/FONT][/COLOR][/SIZE]
    [SIZE=13px][COLOR=#8080ff][FONT=monospace]11:14:57.647 glow/A8032ADDC684/SENSOR/electricitymeter/electricitymeter_energy_import_mpan = 1591023835432[/FONT][/COLOR][/SIZE]
    [SIZE=13px][COLOR=#8080ff][FONT=monospace]11:14:57.647 glow/A8032ADDC684/SENSOR/electricitymeter/electricitymeter_energy_import_month = 249.369[/FONT][/COLOR][/SIZE]
    [SIZE=13px][COLOR=#8080ff][FONT=monospace]11:14:57.647 glow/A8032ADDC684/SENSOR/electricitymeter/electricitymeter_energy_import_price_unitrate = 0.406[/FONT][/COLOR][/SIZE]​
  • Christian Fenzl
    Lebende Foren Legende
    • 31.08.2015
    • 11217

    #2
    I have to fix this in the MQTT Gateway.
    There was a change in the Perl json parser some time ago, so a simple message „false“ is now parsed as json, that my gateway does not expect.

    I‘ll try to get this, but I’m quite busy the next two weeks, therefore I cannot guarantee a quick fix.
    Hilfe für die Menschen der Ukraine: https://www.loxforum.com/forum/proje...Cr-die-ukraine

    Kommentar

    • edipseamm
      Smart Home'r
      • 03.02.2020
      • 38

      #3
      Ok thanks. It took me some head-scratching to work out what was going on but at least you know the problem

      Thanks

      Kommentar

      • rage302
        Extension Master
        • 17.11.2017
        • 130

        #4
        ...okay this explains also my problem with the LWT from my Shellies -> https://www.loxforum.com/forum/proje...992#post383992

        Thank you for the Heads up! Christian Fenzl
        ...I will be patient.


        greetings rage

        Kommentar

        • rage302
          Extension Master
          • 17.11.2017
          • 130

          #5
          Hi Leute,
          ich bin mir ziemlich sicher, dass das Problem mit der LB V3.0.0.3 gefixt wurde.
          ----
          ....pretty sure that this Problem is fixed with LB V3.0.0.3.
          ----
          greetings rage

          Kommentar

          • edipseamm
            Smart Home'r
            • 03.02.2020
            • 38

            #6
            This is now not generating an error in the log but it is still not appearing in the incoming overview and thus not being sent to the mini-server

            Any help, please?
            Angehängte Dateien

            Kommentar

            • edipseamm
              Smart Home'r
              • 03.02.2020
              • 38

              #7
              And here is all that shows in the incoming. The unifi/protect/E063DAEFF627/doorbell is missing
              Angehängte Dateien

              Kommentar

              • edipseamm
                Smart Home'r
                • 03.02.2020
                • 38

                #8
                Actually I'm still getting ''
                ERROR:
                Error on JSON expansion: Inappropriate ioctl for device

                Angehängte Dateien

                Kommentar

                • rage302
                  Extension Master
                  • 17.11.2017
                  • 130

                  #9
                  Zitat von edipseamm
                  Actually I'm still getting ''
                  ERROR:
                  Error on JSON expansion: Inappropriate ioctl for device

                  ...you are right, it has not been fixed properly. The workaround what helped me is to untick "Expand JSON data" in the Gateway settings.

                  greetings rage

                  Kommentar

                  • edipseamm
                    Smart Home'r
                    • 03.02.2020
                    • 38

                    #10
                    Ahhh perfect. This has brought my water sensors and doorbell back online for now until there is a fix

                    Kommentar

                    • Christian Fenzl
                      Lebende Foren Legende
                      • 31.08.2015
                      • 11217

                      #11
                      I‘m currently working on this
                      Hilfe für die Menschen der Ukraine: https://www.loxforum.com/forum/proje...Cr-die-ukraine

                      Kommentar

                      • Christian Fenzl
                        Lebende Foren Legende
                        • 31.08.2015
                        • 11217

                        #12
                        If updating LoxBerry to „Latest Commit“, the problem should be solved.
                        You need to manually restart the Gateway by the button in the UI to restart the Gateway.
                        Christian
                        Hilfe für die Menschen der Ukraine: https://www.loxforum.com/forum/proje...Cr-die-ukraine

                        Kommentar

                        • edipseamm
                          Smart Home'r
                          • 03.02.2020
                          • 38

                          #13
                          Hey Christan

                          Thanks a million for this. Updated ok but I'm away from home to test fully. But looks ok initally

                          Kommentar

                          • edipseamm
                            Smart Home'r
                            • 03.02.2020
                            • 38

                            #14
                            I can confirm this is working correctly now. TY for the latest commit

                            Kommentar

                            • <Andreas>
                              LoxBus Spammer
                              • 07.03.2023
                              • 267

                              #15
                              Works now fine for me

                              Kommentar

                              Lädt...