Skip to content

Custom API and JSON array #4335

Closed Locked Answered by lbalogh
lbalogh asked this question in Support
Discussion options

You must be logged in to vote

Well... I'm responding to myself, my config wasn't formatted correctly :

(edit : complete config)

    - Office lamp
        href: https://my.domain.com/hue/toggle/10
        icon: /icons/light.png
        widget:
            type: customapi
            url: https://my.domain.com//hue/state/10
            mappings:
            - field:
                0:
                    state
              remap:
              - value: true
                to: On
              - value: false
                to: Off

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by lbalogh
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant