konradknitter / homebridge-philips-tv-ambilight

Apache License 2.0
16 stars 5 forks source link

Configuration support #1

Open eRJe79 opened 3 years ago

eRJe79 commented 3 years ago

Could you add some more assistance for the configuration? It's not clear how the config should look like.

Logfile shows this when I complete the settings.

Error: The requested platform 'ExampleHomebridgePlugin' was not registered by any plugin.

konradknitter commented 3 years ago

I was wondering how you get that, I see I didn't update config schema.

Schema in in readme:

{
"accessory": "PhilipsTVAmbilight", "name": "Some Room TV Ambilight", "ip": "IP ADDRESS", "macAddress": "MAC ADDRESS" }

eRJe79 commented 3 years ago

Hi, thanks for your fast reply.

When I complete the settings for the plugin, additional lines are added to the Homebridge config.

image

Pressing save here results in the following lines in the config:

        {
            "name": "Example Dynamic Platform",
            "platform": "ExampleHomebridgePlugin"
        }

After your comment above, I removed those lines and only added the ones you mention. Now the plugin works :-)

edit: Working 55OLED854/12, API v6.4.0

philthuene commented 3 years ago

{ "accessory": "PhilipsTVAmbilight", "name": "Some Room TV Ambilight", "ip": "IP ADDRESS", "macAddress": "MAC ADDRESS" }

When adding this as config, I still get the below line automatically added. When removing, or trying to change, it'll default back to that line: "platform": "ExampleHomebridgePlugin"

Error returned upon starting: No plugin was found for the platform "ExampleHomebridgePlugin" in your config.json. Please make sure the corresponding plugin is installed correctly. Version: homebridge-philips-tv-ambilight v0.1.0

slacky84 commented 3 years ago

Hi, I too am having issues with the configuration for this plugin. After the initial install, the config file contained the following lines - as per the previous post -

    {
        "name": "Example Dynamic Platform",
        "platform": "ExampleHomebridgePlugin"
    }

This results in the following error when Homebridge starts up -

"No plugin was found for the platform "ExampleHomebridgePlugin" in your config.json. Please make sure the corresponding plugin is installed correctly."

As per the other posts, I have added the other lines into the config file so that it reads as follows, but I still get the same error.

    {
        "name": "Example Dynamic Platform",
        "accessory": "PhilipsTVAmbilight",
        "ip": "192.168.1.202",
        "macAddress": "3C-91-80-D9-F8-03",
        "platform": "ExampleHomebridgePlugin"
    }

Note that it will not accept a configuration without the "Platform" line added.

Can you help me with what I am doing wrong, or what my config file should look like? Thanks

for reference I am trying to get it working with the 65OLED854 series.

isaaccs commented 3 years ago

Hi,

I have the same error, did you solve it ?

slacky84 commented 3 years ago

Hi,

I have the same error, did you solve it ?

Yes - add it as an accessory and not a platform!

ManioqTv commented 1 year ago

Hi, I have the same error, did you solve it ?

Yes - add it as an accessory and not a platform!

Hey man, can you share you config file please ? How did you add it as an accessory not a platform as you are saying ? thank you

GraemeARobinson commented 1 year ago

Hey man, can you share you config file please ? How did you add it as an accessory not a platform as you are saying ? thank you

@ManioqTv They mean don't put it in the platforms array. Put it in the accessories array instead, like so:

{
    "bridge": {
        ...
    },
    "accessories": [
        {
            "accessory": "PhilipsTVAmbilight",
            "name": "Some Room TV Ambilight",
            "ip": "IP ADDRESS",
            "macAddress": "MAC ADDRESS"
        }
    ],
    "platforms": [
        ...
    ],
    "disabledPlugins": [
        ...
    ]
}
patipatamidi commented 5 months ago

Hi, I have the same error, did you solve it ?

Yes - add it as an accessory and not a platform!

hello!, do you know how to add ir as an accessory?

{ "bridge": {}, "accessories": [ { "accessory": "PhilipsTVAmbilight", "name": "Living Room TV", "ip": "192.168.0.221", "macAddress": "77:66:9d:7f:66:1b" } ], "platform": "ExampleHomebridgePlugin", "disabledPlugins": [] }

when I put the info on the accessory tab, the platform tab reapear