This is still not correct, wrong " (copying from unformatted code wrangles the ")
I have blown on them and suddenly it worked. For sure I have also replaced the wrangled " for normal ones
Anyway; many thanks for sharing your experience and your quick replies. Everything works now!
Hello, another issue: I bought a ZigBee PIR Motion Sensor.
The console output when there is motion:
01:06:47.113 MQT: tele/tasmota_2D3B58/SENSOR = {âZbReceivedâ:{â0x7E65â:{âDeviceâ:â0x7E65â,âZoneStatusâ:1,âOccupancyâ:1,âEndpointâ:1,âLinkQualityâ:37}}}
I tried to use the same template as for the other sensor, so I add in config.yaml:
- unique_id: â49b96f91-a393-4ba4-bcdd-189bcfb2f849â
name: âBeweging achterâ
state_topic: âtele/tasmota_2D3B58/SENSORâ
value_template: â{{ value_json[âZbReceivedâ][â0x7E65â][âZoneStatusâ] }}â
availability_topic: âtele/tasmota_2D3B58/LWTâ
payload_available: âOnlineâ
payload_not_available: âOfflineâ
qos: 0
device_class: âmotionâ
unit_of_measurement: âmotionâ
Unfortunately it gives errors:
Error: expected SensorDeviceClass or one of âdateâ, âenumâ, âtimestampâ, âapparent_powerâ, âaqiâ, âatmospheric_pressureâ, âbatteryâ, âcarbon_monoxideâ, âcarbon_dioxideâ, âcurrentâ, âdata_rateâ, âdata_sizeâ, âdistanceâ, âdurationâ, âenergyâ, âenergy_storageâ, âfrequencyâ, âgasâ, âhumidityâ, âilluminanceâ, âirradianceâ, âmoistureâ, âmonetaryâ, ânitrogen_dioxideâ, ânitrogen_monoxideâ, ânitrous_oxideâ, âozoneâ, âphâ, âpm1â, âpm10â, âpm25â, âpower_factorâ, âpowerâ, âprecipitationâ, âprecipitation_intensityâ, âpressureâ, âreactive_powerâ, âsignal_strengthâ, âsound_pressureâ, âspeedâ, âsulphur_dioxideâ, âtemperatureâ, âvolatile_organic_compoundsâ, âvolatile_organic_compounds_partsâ, âvoltageâ, âvolumeâ, âvolume_storageâ, âvolume_flow_rateâ, âwaterâ, âweightâ, âwind_speedâ for dictionary value @ data[âdevice_classâ].
I tried as well:
motion:
- unique_id: â49b96f91-a393-4ba4-bcdd-189bcfb2f849â
name: âBeweging sensor achter 1â
state_topic: âtele/tasmota_2D3B58/MOTIONâ
availability_topic: âtele/tasmota_2D3B58/LWTâ
payload_available: âOnlineâ
payload_not_available: âOfflineâ
device_class: motion
but that is invalid as well; Integration âmotionâ not found.
Any suggestion how to define this ZigBee PIR Motion Sensor in configuration.yaml so that it will become available as enitity?
I found out myself:
In configuration.yaml:
binary_sensor:
- unique_id: âc727f4c6-1a15-441e-bd1b-52274dcfc3eeâ
name: âBeweging Ali 1â
state_topic: âtele/tasmota_2D3B58/SENSORâ
payload_on: â1â
payload_off: â0â
availability:
- topic: âtele/tasmota_2D3B58/LWTâ
payload_available: âOnlineâ
payload_not_available: âOfflineâ
qos: 0
device_class: âopeningâ
value_template: â{{ value_json[âZbReceivedâ][â0x7E65â][âZoneStatusChangeâ] }}â