Is there a way to separate the sensor data out into separate sensors? I have a google calendar sensor that has a message of “Garbage, grey box, and green bin” and next week it will be “Garbage, blue box, and green bin”. What I would really like to have is 3 separate sensors Garbage, Recycling (which could be ‘Grey’ or Blue’), and Green Bin.
Is there a way to split out the message content?
can you share the data from that sensor? The more you provide (code, names etc) to easier it’ll be for us to help you.
Then you can create template binary_sensors with something along the lines
value_template: '{{"grey" in state_attr("calendar.calendar_name", "message")}}'
@lolouk44
I certainly can. I wasn’t sure what information would help.
Here is the sensor info I get from States:
message: Garbage, grey box, and green bin
all day: true
offset reached: false
start time : 2019-05-08 00:00:00
end time: 2019-05-09 00:00:00
location:
description: Garbage, grey box, and green bin
cool, then the example I gave you in my previous answer should put you on the right track. I’m at work now so it’s not tested, but it’s the way I’d follow to achieve what you’re after.