- platform: command_line name: BinCollection json_attributes: - next_date - next_type command: 'py C:/Users/Zack/Documents/HA/scripts/bins.py' scan_interval: 43200 - platform: template sensors: next_bin_type: friendly_name: Next Bin Collection Type value_template: '{{ (states("sensor.BinCollection")|from_json())["next_type"] }}' next_bin_date: friendly_name: Next Bin Collection Date value_template: '{{ (states("sensor.BinCollection")|from_json())["next_date"] }}' device_class: timestamp