Adding iotawatt problem

It’s amazing what a good night’s sleep does. It was an authentication issue on the rest call when creating the sensor! I know the rest call was working as it worked in the browser, when I re-tested in the browser this morning and it prompted me for a user/pass I had a lightbulb moment :slight_smile:

Thank you for your help.

1 Like

Eion, how did you configure rest for user/pass ? i suspect this is my current issue. I did set a admin password in the IOTAWATT device.

My issue was with the REST call to Influx not into IOTAWatt. Here’s my sensor code:

  - platform: rest
    name: iotawatt
    resource: 'http://192.168.1.7:8086/query?db=IoTaWatt&q=SELECT%20last(%22Watts%22)%20FROM%20%22IotaWatt%22.%22autogen%22.%22iotawatt%22%20WHERE%20time%20%3E%20NOW()-10m%20GROUP%20BY%20entity_id'
    username:<Username>
    password: <Password>
    authentication: basic
    value_template: 'OK'
    json_attributes:
      - results

THANKS Eoin.