- Posts: 248
- Thank you received: 33
Switches in HA
- bowlingbeeg
- Topic Author
- Away
- User
-
Less
More
2 years 3 months ago #2459
by bowlingbeeg
Replied by bowlingbeeg on topic Switches in HA
I replied to your e-mail just now. Let me know if you need anything more. Thanks Dave!
Please Log in to join the conversation.
- Mark Guebert
- Offline
- User
-
Less
More
- Posts: 34
- Thank you received: 0
2 years 3 months ago #2487
by Mark Guebert
Replied by Mark Guebert on topic Switches in HA
I think I must be not using the command correctly. I can see the defined lighting scenes in HA now. But the command Control|<59>~ActivateScene~Play Movie Lighting or Control|<59>~Play Movie Lighting
Neither works, however I do see the server.do command showing in the logs with no errors
Neither works, however I do see the server.do command showing in the logs with no errors
Please Log in to join the conversation.
- davep
- Offline
- Admin
-
Less
More
- Posts: 367
- Thank you received: 96
2 years 3 months ago #2501
by davep
Replied by davep on topic Switches in HA
ActivateScene does not take any parameters. Instead it will use the entity id that is stored in the Serial Number field in the driver.
Please Log in to join the conversation.
- davep
- Offline
- Admin
-
Less
More
- Posts: 367
- Thank you received: 96
2 years 3 months ago #2502
by davep
Replied by davep on topic Switches in HA
HAGateway driver was just updated.
it adds support for the following entity types script, input_boolean, input_number, input_text, input_button, and counter. All these types will be added as new devices in the Control family.
It exposes new Commands
ActivateScript
SetBoolean|on,off,toggle
SetCounter|increment,decrement,reset
SetText|text
SetNumber|number
Let me know how it goes.
it adds support for the following entity types script, input_boolean, input_number, input_text, input_button, and counter. All these types will be added as new devices in the Control family.
It exposes new Commands
ActivateScript
SetBoolean|on,off,toggle
SetCounter|increment,decrement,reset
SetText|text
SetNumber|number
Let me know how it goes.
Please Log in to join the conversation.
- bitzerjd
- Offline
- User
-
Less
More
- Posts: 373
- Thank you received: 3
2 years 3 months ago - 2 years 3 months ago #2506
by bitzerjd
Replied by bitzerjd on topic Switches in HA
I'm trying to use the script option...using this command
Control|20~ActivateScript
20 is the ID for the script.
The error message I'm getting is "04/05/2024 10:09:52.09 · ERROR · HAGateway.doCommand - Error: No valid controller found for control|20~ActivateScript "
What am I doing wrong?
As a side note... When executing a command to toggle a light on and off, I get this message. I did this to make sure the controller was available.04/05/2024 10:16:38.16 · DEBUG · Server.doCommand - Lighting|200~Toggle from remote004/05/2024 10:16:39.16 · ERROR · HAGateway.ProcessEntity - Error in ProcessEntity - The value cannot be an empty string. (Parameter 'oldValue')
Control|20~ActivateScript
20 is the ID for the script.
The error message I'm getting is "04/05/2024 10:09:52.09 · ERROR · HAGateway.doCommand - Error: No valid controller found for control|20~ActivateScript "
What am I doing wrong?
As a side note... When executing a command to toggle a light on and off, I get this message. I did this to make sure the controller was available.04/05/2024 10:16:38.16 · DEBUG · Server.doCommand - Lighting|200~Toggle from remote004/05/2024 10:16:39.16 · ERROR · HAGateway.ProcessEntity - Error in ProcessEntity - The value cannot be an empty string. (Parameter 'oldValue')
Last edit: 2 years 3 months ago by bitzerjd.
Please Log in to join the conversation.
- davep
- Offline
- Admin
-
Less
More
- Posts: 367
- Thank you received: 96
2 years 3 months ago #2507
by davep
Replied by davep on topic Switches in HA
I did a quick look on your server. The script you are trying to activate has not been enabled. Make sure you enable the objects you want to control.
As for the side note. If that is showing up repeatably I'll have to grab a section of the verbose event log that shows the incoming json that the routine is trying to parse.
As for the side note. If that is showing up repeatably I'll have to grab a section of the verbose event log that shows the incoming json that the routine is trying to parse.
Please Log in to join the conversation.
Time to create page: 0.247 seconds