node-homeassistant icon indicating copy to clipboard operation
node-homeassistant copied to clipboard

ha.call don't work?

Open sebastianstretch opened this issue 4 years ago • 0 comments

I am trying this but I can't get boolean or input_text to update/turn on/off..

    ha.call({
        domain: 'input_boolean',
        service: 'input_boolean.turn_off',
        entity_id: 'input_boolean.testing'
    })    

EDIT: Sorry.. i figrured it out and it is working.

    ha.call({
        domain: 'light',
        service: 'toggle',
        service_data: {
            entity_id: 'light.kitchen_1'
        }
      })

sebastianstretch avatar Jan 22 '21 08:01 sebastianstretch