Hy
My Shelly Cloud sensors haven’t been working for a few days. The Shelly page mentions a switch to V2 of the API.
However, this requires changing the content type to JSON. Additionally, up to 10 sensors should be able to be triggered with a single call.
I’ve been trying to make the switch for some time now, but unfortunately, without success.
Does anyone already have Shelly Cloud App V2 running or can help me with the switches?
# Relais Klimaanlage
- resource: https://shelly-177-eu.shelly.cloud/v2/devices/api/get?auth_key=xxxxxxxxxx
method: POST
payload: "@data.json"
headers:
User-Agent: Home Assistant
Content-Type: application/json
scan_interval: 2
sensor:
- name: Blumenherz Klima Power
value_template: "{{ value_json['0']['status']['switch:0']['apower'] }}"
unit_of_measurement: "W"
state_class: measurement
- name: Blumenherz Klima Spannung
value_template: "{{ value_json['status']['switch:0']['voltage'] }}"
unit_of_measurement: "V"
- name: Blumenherz Klima Strom
value_template: "{{ value_json['status']['switch:0']['current'] }}"
unit_of_measurement: "A"
- name: Blumenherz Klima Temperatur
value_template: "{{ value_json['status']['switch:0']['temperature']['tC'] }}"
unit_of_measurement: "°C"
binary_sensor:
- name: Blumenherz Klima Relais Status
value_template: "{{ value_json['status']['switch:0']['output'] }}"
- name: Blumenherz Klima online testen
value_template: "{{ value_json['status']['cloud']['connected'] }}"
Call payload (data.json)
{
"ids":"xxxxxxxxxx",
"select":"status"
}
Call configuration.jaml
# Shelly Cloud API - Basement Sensor
rest: !include Shelly-Cloud-Test.yaml
Thanks for your Help