IOS debug for newbie

Hi everyone, I would like simply to get notification to my iphone from my flood sensor Fibaro.
after reading and reading…I set up my config file with IOS: and automation. Could someone help me figure out the bugs on the IOS script and automation please. I copied the IOS script from the HA IOS configuration as well as the automation script. ssinseeme is the ID I found on my phone app. I named my fibaror sensor as flood sensor
ios:
push:
categories:
- name: Alarm
identifier: ‘alarm’
actions:
- identifier: ‘SOUND_ALARM’
title: ‘Sound Alarm’
activationMode: ‘background’
authenticationRequired: yes
destructive: yes
behavior: ‘default’
- identifier: ‘SILENCE_ALARM’
title: ‘Silence Alarm’
activationMode: ‘background’
authenticationRequired: yes
destructive: no
behavior: ‘textInput’
textInputButtonTitle: ‘Silencio!’
textInputPlaceholder: ‘Placeholder’

automation:

  • alias: Notify iOS app
    trigger:

    action:
    service: notify.ios_ssinseeme_iphone_8_plus
    data:
    title: “Smart Home Alerts”
    message: “Something happened at home!”
    data:
    push:
    badge: 5

Invalid config for [automation]: expected a dictionary @ data[‘trigger’][0]. Got None. (See /config/configuration.yaml, line 112). Please check the docs at https://home-assistant.io/components/automation/

question do you want to send a simple notification or do you want to sent an actionable notification ?
for a basic notification here is an example
dont forget to update the push notification on the ios app

ios:

  - alias: Notify iOS app
    trigger:
      ...
    action:
      service: notify.ios_<your_device_id_here>
      data:
        title: "Smart Home Alerts"
        message: "Something happened at home!"
        data:
          push:
            badge: 0

let start with basic.
I did this is what I get
ios:

  • alias: Notify iOS app
    trigger:

    action:
    service: notify.ios_ssinseeme
    data:
    title: “Smart Home Alerts”
    message: “Something happened at home!”
    data:
    push:
    badge: 0

Configuration validation#############################################################################
Invalid config for [ios]: expected a dictionary for dictionary value @ data[‘ios’]. Got [OrderedDict([(‘alias’, ‘Notify iOS app’), (‘trigger’, ‘…’), (‘action’, OrderedDict([(‘service’, ‘notify.ios_ssinseeme’), (‘data’, OrderedDict([(‘title’, ‘Smart Home Alerts’), (‘message’, ‘Something happened at home!’), (‘data’, OrderedDict([(‘push’, OrderedDict([(‘badge’, 0)]))]))]))]))])]. (See /config/configuration.yaml, line 90). Please check the docs at https://home-assistant.io/components/ios/

Can you please rephrase your question using Preformatted text in your config, to make it somehow readable? Copy your config into the text (make sure you leave an empty line before and after it), select it and then click button </> to format it.

As it is now, most probably no one will be able to help you, even if they want to.

Yes, I only change my ios device name to “ssinseeme” from : service: notify.ios_<your_device_id_here> to service: notify.ios_ssinseeme;

then I had the error when i validate the code.this is the same code i used attached. Should I do anything else or add?

All of that code should be under automation: not ios:

Do you have an example for a sensor. So how about IOS: you are saying i shouldn’t have that on the configuration file!

my bad is not under automations it should be like this

ios:

automations old:
  - alias: Notify iOS app
    trigger:
      ...
    action:
      service: notify.ios_&lt;your_device_id_here&gt;
      data:
        title: "Smart Home Alerts"
        message: "Something happened at home!"
        data:
          push:
            badge: 0

note im using the automations old …i dont use automations editor

you have to have ios: on your configuration.ymal
and under automation old: like this

automations old:
  - alias: Notify iOS app
    trigger:
      ...
    action:
      service: notify.ios_&lt;your_device_id_here&gt;
      data:
        title: "Smart Home Alerts"
        message: "Something happened at home!"
        data:
          push:
            badge: 0

Hey bro, this returns
Configuration invalid
Component not found: automations

I only changed <your_device_id_here> with my iphone 8 ID which is ssinseeme

 ios:
automations old:
  - alias: Notify iOS app
    trigger:
      ...
    action:
      service: notify.ios_ssinseeme
      data:
        title: "Smart Home Alerts"
        message: "Something happened at home!"
        data:
          push:
            badge: 0

I’m sorry is automation old: not automations old: also change the entity to whatever entity you have and dont forget to update the push notification on the ios app
with this i get a notification every time my bedroom light is turn on

automation old:
  - alias: My room light
    trigger:
      platform: state
      entity_id: light.mi_cuarto1   
      to: 'on'
    action:
      service: notify.ios_your_iphone
      data:
        message: Your room is on!
        data:
          push:
            badge: 0

click here to watch a video by DrZzs and here by BurnsHa on how to set up ios notificatios

I dont want to be a pain. my scrip configured this time with no errors but still I am not getting notification. please check this script

ios:
  push:
    categories:
      - name: Alarm flood
        identifier: 'ALARM FLOOD'
        actions:
          - identifier: 'FLOOD ON'
            title: 'go to the baseman'

automation old:
  - alias: My flood sensor
    trigger:
      platform: state
      entity_id: binary_sensor.fibaro_system_fgfs101_flood_sensor_genera  
      to: 'on'
    action:
      service: notify.ios_ssinseeme
      data:
        message: you have flood!
        data:
          push:
            badge: 0
            category:

ok i get it.!
Now I am trying to add another sensor to notify be when the door is open. how do i add it in this script.
Thank you