-
Hey Awawa! Thank you! EDIT in the issues i've found this answer from you:
Am I right with that: To control it I only need "command_on" and "command_off" Having the current state within IoBroker would be a nice to have. But therefore I guess I have limited knowledge of how to put the outcome of "command_state" into an IoBroker datapoint. Best Regards |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi API address: To set HDR tone mapping include JSON in the videomodehdr request (HDR: 0 - off, 1 -on). For example: To get the state of main components send: The result of serverinfo command returns a json. Home Assistant (https://www.home-assistant.io/docs/configuration/templating/) can automatically parse it to value_json from the above example so to extract a HDR property from that object you can simple refer to value_json.info.videomodehdr Unfortunately have no experience with ioBroker and could not find a parser for json but it offers regex parser that probably can extract that value in somehow unconventional way (ignore json structure and treat it as a text): https://github.com/ioBroker/ioBroker.parser So for following result from the HyperHDR: you should use regex: to assign the state of HDR tone mapping to the final regex group (tested on https://regex101.com/): |
Beta Was this translation helpful? Give feedback.
Hi
Yes, you can control HDR settings with the commands that you have included.
API address:
http://{IP_OF_HYPERHDR}:8090/json-rpc
To set HDR tone mapping include JSON in the videomodehdr request (HDR: 0 - off, 1 -on). For example:
{"command":"videomodehdr","HDR":1}
To get the state of main components send:
{"command":"serverinfo"}
The result of serverinfo command returns a json. Home Assistant (https://www.home-assistant.io/docs/configuration/templating/) can automatically parse it to value_json from the above example so to extract a HDR property from that object you can simple refer to value_json.info.videomodehdr Unfortunately have no experience with ioBroker and could not find a parser…