Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated to latest version and now switch-multi's don't turn off automatically. #350

Open
jat80 opened this issue Apr 5, 2018 · 5 comments

Comments

@jat80
Copy link

jat80 commented Apr 5, 2018

Looks like there have been a lot of changes with the terms for accessory types and this latest update in general.

I previously had a switch multi type my config which WAS working fine and looked like this but now it won't turn off automatically:

{
"name":"Volume Up",
"type":"switch-repeat",
"sendCount":4,
"interval":0.3,
"data":"hex code here"
},

With the update I've tried adding this format:

{
"name":"Volume Up",
"type":"switch",
"enableAutoOff": true,
"onDuration": 2.5,
"data": [
{
"data": "VOLUME_UP_HEX...",
"sendCount": 4,
"interval": 0.3
}
]
},

everything accepts in the config but it won't actually fire the hex code. The home app button turns on then off as expected but IR signal is not sent. (no light on rm mini either). I've tried adding the auto off line in the original code but that doesn't work.

Any tips?

@cubilon
Copy link

cubilon commented Apr 5, 2018

use a syntax like this


	{
					"name": "VOLUME+",
					"type": "switch",
					"resendHexAfterReload": false,
					"debug": false,

					"enableAutoOff": true,
					"onDuration": 1,
					"sendCount": 10,
					"interval": 0.0,
					"data": "2600a400061...."
				},

@DJay-X
Copy link

DJay-X commented Apr 6, 2018

Hi...
I tried to replace some commands to the new ones because of the updated plugin, but unfortunately without any success.
Also thanks to the advice from @cubilon

This previous configuration worked with noticeable change in volume

{
                    "name": "Lautstärke hoch",
                    "type": "switch-repeat",
                    "disableAutomaticOff": false,
                    "onDuration": 1,
                    "sendCount": 3,
                    "interval": 0.3,
                    "data": "260050000001289314111312133713121312141112131411143514361213123713371336123713371312133613121411151013131312131213361312143514361336153513361237140005260001284913000d050000000000000000"
                },
                {
                    "name": "Lautstärke runter",
                    "type": "switch-repeat",
                    "disableAutomaticOff": false,
                    "onDuration": 1,
                    "sendCount": 3,
                    "interval": 0.3,
                    "data": "260050000001289313121411133714111312131213121312123714361411133614351436133614361336133614111312141212131213121314111312133613371336143513371237140005260001274a15000d050000000000000000"
                },

The volume up and volume down is sending a few times so that volume noticeable in- decreases.

The new configuration just slightly chances the volume almost not noticeable.
Even with a sendCout 100.

{
                    "name": "Lautstärke hoch",
                    "type": "switch",
                    "enableAutoOff": true,
                    "onDuration": 1,
                    "sendCount": 5,
                    "interval": 1,
                    "data": "260050000001289314111312133713121312141112131411143514361213123713371336123713371312133613121411151013131312131213361312143514361336153513361237140005260001284913000d050000000000000000"
                },
                {
                    "name": "Volume up",
                    "type": "switch",
                    "enableAutoOff": true,
                    "onDuration": 1,
                    "sendCount": 100,
                    "interval": 1,
                    "data": {
                        "on": "260050000001289314111312133713121312141112131411143514361213123713371336123713371312133613121411151013131312131213361312143514361336153513361237140005260001284913000d050000000000000000",
                        "off": ""
                    }
                },
                {
                    "name": "Lautstärke runter",
                    "type": "switch",
                    "enableAutoOff": true,
                    "onDuration": 1,
                    "sendCount": 5,
                    "interval": 1,
                    "data": "260050000001289313121411133714111312131213121312123714361411133614351436133614361336133614111312141212131213121314111312133613371336143513371237140005260001274a15000d050000000000000000"
                },

The same with

{
					"name": "VOLUME+",
					"type": "switch",
					"resendHexAfterReload": false,
					"debug": false,

					"enableAutoOff": true,
					"onDuration": 1,
					"sendCount": 10,
					"interval": 0.0,
					"data": "2600a400061...."
				},

Any Idea what I am doing wrong? Thanks in advance.

@jat80
Copy link
Author

jat80 commented Apr 11, 2018

I got mine to work with this:

{
"name":"TV INPUT",
"type":"switch-repeat",
"enableAutoOff":true,
"sendCount":4,
"interval":0.3,
"onDuration":3,
"host":"192.1.1.1.1",
"data":{
"on": "HEX CODE..."
}

@DJay-X
Copy link

DJay-X commented Apr 12, 2018

@jat80 You used the "type":"switch-repeat" again which is no longer supported in the future. That was the point changing to "type": "switch". With switch-repeat I haven't had a problem at all.
Or do I understand something wrong? 🤔

@jat80
Copy link
Author

jat80 commented Apr 12, 2018

@DJay-X this was the only way I could get it to work with the current update. Not sure how it will be going forward but it works for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants